mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 16:52:31 +00:00
avoid selecting other file when routing
This commit is contained in:
@@ -13,6 +13,10 @@ export const settings = writable<{ [key: string]: any }>({
|
||||
velocityUnits: 'speed',
|
||||
temperatureUnits: 'celsius',
|
||||
});
|
||||
export enum Tool {
|
||||
ROUTING
|
||||
}
|
||||
export const currentTool = writable<Tool | null>(null);
|
||||
|
||||
export function getFileStore(file: GPXFile): Writable<GPXFile> {
|
||||
return get(files).find(store => get(store) === file) ?? addFile(file);
|
||||
|
Reference in New Issue
Block a user