avoid selecting other file when routing

This commit is contained in:
vcoppe
2024-04-25 13:56:07 +02:00
parent 20af7c4e45
commit a23e73e82a
3 changed files with 14 additions and 9 deletions

View File

@@ -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);