We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3407528 + 3d70a05 commit 4c8f20bCopy full SHA for 4c8f20b
apps/client/src/components/root_command_executor.ts
@@ -171,7 +171,8 @@ export default class RootCommandExecutor extends Component {
171
}
172
173
toggleTrayCommand() {
174
- if (!utils.isElectron()) return;
+ if (!utils.isElectron() || options.is("disableTray")) return;
175
+
176
const { BrowserWindow } = utils.dynamicRequire("@electron/remote");
177
const windows = BrowserWindow.getAllWindows() as Electron.BaseWindow[];
178
const isVisible = windows.every((w) => w.isVisible());
0 commit comments