Skip to content

Commit

Permalink
Disable unavailable tray and menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Dec 2, 2021
1 parent d3a3542 commit e5d0a6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,7 @@ const createTray = () => {
{ type: "separator" },
{
label: "Settings",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.global_shortcuts.settings,
click: () => {
settingsFromTray()
Expand Down Expand Up @@ -1415,6 +1416,7 @@ const createMenu = () => {
},
{
label: "Settings",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.shortcuts.settings,
click: () => {
const toggle = () => {
Expand Down Expand Up @@ -1489,6 +1491,7 @@ const createMenu = () => {
submenu: [
{
label: "Edit codes",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.shortcuts.edit,
click: () => {
const toggle = () => {
Expand Down Expand Up @@ -1522,6 +1525,7 @@ const createMenu = () => {
},
{
label: "Import",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.shortcuts.import,
click: () => {
const toggle = () => {
Expand Down Expand Up @@ -1555,6 +1559,7 @@ const createMenu = () => {
},
{
label: "Export",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.shortcuts.export,
click: () => {
const toggle = () => {
Expand Down

0 comments on commit e5d0a6e

Please sign in to comment.