mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Use a better way to check menu item
This commit is contained in:
16
app/menu.js
16
app/menu.js
@@ -207,9 +207,7 @@ const menulayout = [
|
||||
buttons: ["OK"],
|
||||
});
|
||||
},
|
||||
checked: getValue("websites-in-new-window")
|
||||
? getValue("websites-in-new-window") === "true"
|
||||
: true,
|
||||
checked: getValue("websites-in-new-window") === "true",
|
||||
},
|
||||
{
|
||||
label: "Open Websites in the Same Window",
|
||||
@@ -224,9 +222,7 @@ const menulayout = [
|
||||
buttons: ["OK"],
|
||||
});
|
||||
},
|
||||
checked: getValue("websites-in-new-window")
|
||||
? getValue("websites-in-new-window") === "false"
|
||||
: false,
|
||||
checked: getValue("websites-in-new-window") === "false",
|
||||
},
|
||||
{ type: "separator" },
|
||||
{
|
||||
@@ -581,9 +577,7 @@ const menulayout = [
|
||||
buttons: ["OK"],
|
||||
});
|
||||
},
|
||||
checked: getValue("websites-in-new-window")
|
||||
? getValue("websites-in-new-window") === "true"
|
||||
: true,
|
||||
checked: getValue("websites-in-new-window") === "true",
|
||||
},
|
||||
{
|
||||
label: "Open Websites in the Same Window",
|
||||
@@ -598,9 +592,7 @@ const menulayout = [
|
||||
buttons: ["OK"],
|
||||
});
|
||||
},
|
||||
checked: getValue("websites-in-new-window")
|
||||
? getValue("websites-in-new-window") === "false"
|
||||
: false,
|
||||
checked: getValue("websites-in-new-window") === "false",
|
||||
},
|
||||
{ type: "separator" },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user