Skip to content

Commit ef86e19

Browse files
committed
remove constant and import, it is type safe as is #7730
1 parent d69dd2a commit ef86e19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/server/src/services/window.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import optionService from "./options.js";
66
import log from "./log.js";
77
import sqlInit from "./sql_init.js";
88
import cls from "./cls.js";
9-
import { KeyboardActionNames } from "@triliumnext/commons";
109
import keyboardActionsService from "./keyboard_actions.js";
1110
import electron from "electron";
1211
import type { App, BrowserWindowConstructorOptions, BrowserWindow, WebContents, IpcMainEvent } from "electron";
@@ -320,7 +319,6 @@ function closeSetupWindow() {
320319
}
321320

322321
async function registerGlobalShortcuts() {
323-
const toggleTrayAction: KeyboardActionNames = "toggleTray";
324322
const { globalShortcut } = await import("electron");
325323

326324
await sqlInit.dbReady;
@@ -344,7 +342,7 @@ async function registerGlobalShortcuts() {
344342
return;
345343
}
346344

347-
if (action.actionName === toggleTrayAction) {
345+
if (action.actionName === "toggleTray") {
348346
targetWindow.focus();
349347
} else {
350348
showAndFocusWindow(targetWindow);

0 commit comments

Comments
 (0)