Skip to content

Commit 4c8f20b

Browse files
authored
ignore toggle tray command if tray is disabled (#7654)
2 parents 3407528 + 3d70a05 commit 4c8f20b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/client/src/components/root_command_executor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export default class RootCommandExecutor extends Component {
171171
}
172172

173173
toggleTrayCommand() {
174-
if (!utils.isElectron()) return;
174+
if (!utils.isElectron() || options.is("disableTray")) return;
175+
175176
const { BrowserWindow } = utils.dynamicRequire("@electron/remote");
176177
const windows = BrowserWindow.getAllWindows() as Electron.BaseWindow[];
177178
const isVisible = windows.every((w) => w.isVisible());

0 commit comments

Comments
 (0)