File tree 3 files changed +11
-0
lines changed
desktop/packages/mullvad-vpn/src
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ export default class Settings implements Readonly<ISettings> {
142
142
IpcMainEventChannel . currentVersion . handleDisplayedChangelog ( ( ) => {
143
143
this . guiSettings . changelogDisplayedForVersion = this . currentVersion . gui ;
144
144
} ) ;
145
+
146
+ IpcMainEventChannel . upgradeVersion . handleDismissedUpgrade ( ( version : string ) => {
147
+ this . guiSettings . updateDismissedForVersion = version ;
148
+ } ) ;
145
149
}
146
150
147
151
public get all ( ) {
Original file line number Diff line number Diff line change @@ -586,6 +586,12 @@ export default class AppRenderer {
586
586
IpcRendererEventChannel . currentVersion . displayedChangelog ( ) ;
587
587
} ;
588
588
589
+ public setDismissedUpgrade = ( ) : void => {
590
+ IpcRendererEventChannel . upgradeVersion . dismissedUpgrade (
591
+ this . reduxStore . getState ( ) . version . suggestedUpgrade ?? '' ,
592
+ ) ;
593
+ } ;
594
+
589
595
public setNavigationHistory ( history : IHistoryObject ) {
590
596
IpcRendererEventChannel . navigation . setHistory ( history ) ;
591
597
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ export const ipcSchema = {
155
155
} ,
156
156
upgradeVersion : {
157
157
'' : notifyRenderer < IAppVersionInfo > ( ) ,
158
+ dismissedUpgrade : send < string > ( ) ,
158
159
} ,
159
160
app : {
160
161
quit : send < void > ( ) ,
You can’t perform that action at this time.
0 commit comments