Skip to content

Commit 7cef2a0

Browse files
committed
feat(config): update current version during app initialization
- Set `config.Update.CurrentVersion` to the assembly's current version. - Ensures the application reflects the accurate version upon initialization.
1 parent 0373248 commit 7cef2a0

File tree

1 file changed

+1
-0
lines changed
  • EasyExtractUnitypackageRework/EasyExtract/Core

1 file changed

+1
-0
lines changed

EasyExtractUnitypackageRework/EasyExtract/Core/App.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ private async void App_OnStartup(object sender, StartupEventArgs e)
5454
if (config.ContextMenuToggle)
5555
await RegistryHelper.RegisterContextMenuEntry();
5656

57+
config.Update.CurrentVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
5758
var dashboard = new Dashboard(new CancellationTokenSource());
5859
dashboard.InitializeComponent();
5960
dashboard.Show();

0 commit comments

Comments
 (0)