mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
fix: Unable to initialize persistent data in some cases.
This commit is contained in:
parent
2388d4b974
commit
2cf1007b5d
@ -6,7 +6,7 @@ const app = electron.app;
|
|||||||
const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-dev" : "");
|
const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-dev" : "");
|
||||||
|
|
||||||
function storageHaveCurrentVersion() {
|
function storageHaveCurrentVersion() {
|
||||||
return typeof electronSettings.get(app_version_as_string) === "object";
|
return electronSettings.has(app_version_as_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAllAvailableVersion() {
|
function getAllAvailableVersion() {
|
||||||
|
Loading…
Reference in New Issue
Block a user