File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,17 @@ if (!gotTheLock) {
470
470
471
471
createInjectedProviderWindow ( )
472
472
473
+ const currentStoredVersion = configStore . get ( 'appVersion' )
474
+
475
+ // Add MM reload here after a couple of version
476
+ if ( currentStoredVersion !== app . getVersion ( ) ) {
477
+ logInfo (
478
+ `App version changed from ${ currentStoredVersion } to ${ app . getVersion ( ) } ` ,
479
+ LogPrefix . Backend
480
+ )
481
+ configStore . set ( 'appVersion' , app . getVersion ( ) )
482
+ }
483
+
473
484
const providerPreloadPath = path . join (
474
485
__dirname ,
475
486
'../preload/providerPreload.js'
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { UserData } from 'common/types/gog'
21
21
22
22
export interface StoreStructure {
23
23
configStore : {
24
+ appVersion : string
24
25
userHome : string
25
26
userInfo : UserInfo
26
27
games : {
You can’t perform that action at this time.
0 commit comments