File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 369
369
<system : String x : Key =" seeMoreReleaseNotes" >See more release notes on GitHub</system : String >
370
370
<system : String x : Key =" checkNetworkConnectionTitle" >Failed to fetch release notes</system : String >
371
371
<system : String x : Key =" checkNetworkConnectionSubTitle" >Please check your network connection or ensure GitHub is accessible</system : String >
372
+ <system : String x : Key =" appUpdateTitle" >Flow Launcher has been updated to {0}</system : String >
373
+ <system : String x : Key =" appUpdateButtonContent" >Click here to view the release notes</system : String >
372
374
373
375
<!-- FileManager Setting Dialog -->
374
376
<system : String x : Key =" fileManagerWindow" >Select File Manager</system : String >
Original file line number Diff line number Diff line change @@ -140,8 +140,18 @@ private void OnLoaded(object sender, RoutedEventArgs _)
140
140
// Update release notes version
141
141
_settings . ReleaseNotesVersion = Constant . Version ;
142
142
143
- var releaseNotesWindow = new ReleaseNotesWindow ( ) ;
144
- releaseNotesWindow . Show ( ) ;
143
+ // Display message box with button
144
+ App . API . ShowMsgWithButton (
145
+ string . Format ( App . API . GetTranslation ( "appUpdateTitle" ) , Constant . Version ) ,
146
+ App . API . GetTranslation ( "appUpdateButtonContent" ) ,
147
+ ( ) =>
148
+ {
149
+ Application . Current . Dispatcher . Invoke ( ( ) =>
150
+ {
151
+ var releaseNotesWindow = new ReleaseNotesWindow ( ) ;
152
+ releaseNotesWindow . Show ( ) ;
153
+ } ) ;
154
+ } ) ;
145
155
}
146
156
147
157
// Initialize place holder
You can’t perform that action at this time.
0 commit comments