feat: 样式调整
This commit is contained in:
@@ -44,6 +44,7 @@ const SHARED_WINDOW_OPTIONS = {
|
||||
class WindowService {
|
||||
private static _instance: WindowService;
|
||||
private _logo = createLogo();
|
||||
private readonly isDev = !!MAIN_WINDOW_VITE_DEV_SERVER_URL
|
||||
|
||||
private _winStates: Record<WindowNames | string, WindowState> = {
|
||||
main: { instance: void 0, isHidden: false, onCreate: [], onClosed: [] },
|
||||
@@ -103,6 +104,8 @@ class WindowService {
|
||||
const isHiddenWin = this._isHiddenWin(name);
|
||||
let window = this._createWinInstance(name, { ...size, ...moreOpts });
|
||||
|
||||
if (this.isDev) window.webContents.openDevTools()
|
||||
|
||||
!isHiddenWin && this
|
||||
._setupWinLifecycle(window, name)
|
||||
._loadWindowTemplate(window, name)
|
||||
|
||||
Reference in New Issue
Block a user