File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 "@tauri-apps/plugin-updater" : " ^2.9.0" ,
2222 "@vueuse/core" : " ^14.0.0" ,
2323 "class-transformer" : " ^0.5.1" ,
24- "luxon" : " ^3.7.2" ,
2524 "naive-ui" : " ^2.43.1" ,
2625 "p-map" : " ^7.0.3" ,
2726 "p-queue" : " ^8.1.0" ,
3231 "devDependencies" : {
3332 "@eslint/js" : " ^10.0.1" ,
3433 "@tauri-apps/cli" : " ^2.9.3" ,
35- "@types/luxon" : " ^3.7.1" ,
3634 "@vicons/fluent" : " ^0.12.0" ,
3735 "@vitejs/plugin-vue" : " ^6.0.1" ,
3836 "@vue/tsconfig" : " ^0.7.0" ,
Original file line number Diff line number Diff line change 99 " core:app:default" ,
1010 " core:event:default" ,
1111 " core:path:default" ,
12- " core:resources:allow-close" ,
1312 " core:window:allow-destroy" ,
1413 " core:window:allow-request-user-attention" ,
1514 " core:window:allow-set-progress-bar" ,
1817 " dialog:allow-open" ,
1918 " fs:default" ,
2019 " fs:allow-stat" ,
21- {
22- "identifier" :" fs:allow-open" ,
23- "allow" : [" **/*" ]
24- },
25- {
26- "identifier" :" fs:allow-remove" ,
27- "allow" : [" **/*" ]
28- },
2920 {
3021 "identifier" : " fs:allow-appcache-write" ,
3122 "allow" : [
Original file line number Diff line number Diff line change @@ -161,8 +161,7 @@ import { FlashStatus } from '@/composables/progress';
161161import { useHexImage , usePartitions } from ' @/composables/partitions' ;
162162import { useFlashSession } from ' @/composables/useFlashSession' ;
163163import { useListen } from ' @/composables/tauri/useListen' ;
164- import { useAppName , useAppVersion } from ' @/composables/tauri/app' ;
165- import { bindProgressBar , bindTitle } from ' @/composables/tauri/window' ;
164+ import { bindProgressBar } from ' @/composables/tauri/window' ;
166165import { useSettings } from ' @/composables/tauri/settings' ;
167166
168167import AppSettings from ' @/components/sections/AppSettings.vue' ;
@@ -195,7 +194,6 @@ const {
195194 flashInfo,
196195 progress,
197196 busyForFlash,
198- logFileName,
199197 resetForFlash,
200198 resetForInfo,
201199 stopFlash,
@@ -556,20 +554,6 @@ useListen(() => getCurrentWindow().onCloseRequested(async (event) => {
556554}));
557555
558556const settingsShown = ref (false );
559-
560- const appName = useAppName ();
561- const appVersion = useAppVersion ();
562- bindTitle (() => {
563- if (! appName .value || ! appVersion .value ) {
564- return undefined ;
565- }
566-
567- if (logFileName .value ) {
568- return ` ${appName .value } - v${appVersion .value } (${logFileName .value }) ` ;
569- } else {
570- return ` ${appName .value } - v${appVersion .value } ` ;
571- }
572- });
573557 </script >
574558
575559<style lang="scss" module>
Original file line number Diff line number Diff line change @@ -19,9 +19,21 @@ import {
1919 darkTheme ,
2020 useOsTheme ,
2121} from ' naive-ui' ;
22+ import { useAppName , useAppVersion } from ' @/composables/tauri/app' ;
23+ import { bindTitle } from ' @/composables/tauri/window' ;
2224
2325import App from ' @/App.vue' ;
2426
2527const osTheme = useOsTheme ();
2628const darkMode = computed (() => osTheme .value === ' dark' );
29+
30+ const appName = useAppName ();
31+ const appVersion = useAppVersion ();
32+ bindTitle (() => {
33+ if (! appName .value || ! appVersion .value ) {
34+ return undefined ;
35+ }
36+
37+ return ` ${appName .value } - v${appVersion .value } ` ;
38+ });
2739 </script >
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments