File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,6 @@ const languages = ref(['en'])
2121const appVersion = ref (' Unknown' )
2222const selectedFile = ref (' ' )
2323
24- onMounted ((): void => {
25- languages .value = availableLocales
26-
27- // Get application version from package.json version string (Using IPC communication)
28- getApplicationVersionFromMainProcess ()
29- })
30-
3124const getApplicationVersionFromMainProcess = (): void => {
3225 window .mainApi .invoke (' msgRequestGetVersion' ).then ((result : string ) => {
3326 appVersion .value = result
@@ -60,6 +53,13 @@ const handleOpenFile = async () => {
6053 selectedFile .value = dialogResult .filePaths [0 ]
6154 }
6255}
56+
57+ onMounted ((): void => {
58+ languages .value = availableLocales
59+
60+ // Get application version from package.json version string (Using IPC communication)
61+ getApplicationVersionFromMainProcess ()
62+ })
6363 </script >
6464
6565<template >
You can’t perform that action at this time.
0 commit comments