diff --git a/package.json b/package.json index dfdd9b2f..b0e59a62 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "git+https://github.com/opencor/webapp.git" }, "type": "module", - "version": "0.20260224.0", + "version": "0.20260224.1", "scripts": { "archive:web": "bun src/renderer/scripts/archive.web.js", "build": "electron-vite build", diff --git a/src/renderer/package.json b/src/renderer/package.json index fc5ccf1d..e5fd5b3d 100644 --- a/src/renderer/package.json +++ b/src/renderer/package.json @@ -39,7 +39,7 @@ }, "./style.css": "./dist/opencor.css" }, - "version": "0.20260224.0", + "version": "0.20260224.1", "scripts": { "build": "vite build && bun scripts/generate.version.js", "build:lib": "vite build --config vite.lib.config.ts && cp index.d.ts dist/index.d.ts", diff --git a/src/renderer/src/components/ContentsComponent.vue b/src/renderer/src/components/ContentsComponent.vue index df4af653..7f2252a0 100644 --- a/src/renderer/src/components/ContentsComponent.vue +++ b/src/renderer/src/components/ContentsComponent.vue @@ -21,7 +21,7 @@ :scrollable="true" :selectOnFocus="true" > - + (); defineEmits<(event: 'error', message: string) => void>(); -export interface IContentsComponent { - openFile(file: locApi.File): void; - closeCurrentFile(): void; - closeAllFiles(): void; - hasFile(filePath: string): boolean; - hasFiles(): boolean; - selectFile(filePath: string): void; -} - -const fileTablistId = vue.ref('contentsComponentFileTablist'); const fileTabs = vue.ref([]); const activeFile = vue.ref(''); @@ -201,16 +191,6 @@ vue.watch(activeFile, (newActiveFile: string) => { electronApi?.fileSelected(newActiveFile); }); -// Various things that need to be done once we are mounted. - -const crtInstance = vue.getCurrentInstance(); - -vue.onMounted(() => { - // Customise our IDs. - - fileTablistId.value = `contentsComponentFileTablist${String(crtInstance?.uid)}`; -}); - // Keyboard shortcuts. if (common.isDesktop()) { diff --git a/src/renderer/src/components/MainMenu.vue b/src/renderer/src/components/MainMenu.vue index 28f0f65f..8640a76f 100644 --- a/src/renderer/src/components/MainMenu.vue +++ b/src/renderer/src/components/MainMenu.vue @@ -1,5 +1,5 @@