mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Ensure shortcut creation on first launch.
This commit is contained in:
parent
2649598fa1
commit
c17a56cd67
13
main.js
13
main.js
@ -122,7 +122,18 @@ if (!setupEvents.handleSquirrelEvent()) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (!old_version) {
|
||||||
|
settings.set('settings',
|
||||||
|
Object.assign(
|
||||||
|
{},
|
||||||
|
settings.set('settings'),
|
||||||
|
{
|
||||||
|
last_used_version: require('./package.json').version,
|
||||||
|
first_launch: true,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
// Keep a global reference of the window object, if you don't, the window will
|
// Keep a global reference of the window object, if you don't, the window will
|
||||||
// be closed automatically when the JavaScript object is garbage collected.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
let mainWindow
|
let mainWindow
|
||||||
|
Loading…
Reference in New Issue
Block a user