bugfix :: appStorage 에 config.dat 파일에 대한 rename 오류 추정 수정.
This commit is contained in:
parent
4900ba729c
commit
b5fade50de
@ -14,8 +14,8 @@ import {
|
|||||||
ElectronWebContentsChannel
|
ElectronWebContentsChannel
|
||||||
} from '@ucap-webmessenger/electron-core';
|
} from '@ucap-webmessenger/electron-core';
|
||||||
|
|
||||||
import { appStorage } from '../lib/storage';
|
|
||||||
import { now } from '../util/now';
|
import { now } from '../util/now';
|
||||||
|
import { Storage } from '../lib/storage';
|
||||||
|
|
||||||
export class AppWindow {
|
export class AppWindow {
|
||||||
private window: BrowserWindow | null = null;
|
private window: BrowserWindow | null = null;
|
||||||
@ -33,7 +33,7 @@ export class AppWindow {
|
|||||||
private defaultWidth = 1160;
|
private defaultWidth = 1160;
|
||||||
private defaultHeight = 800;
|
private defaultHeight = 800;
|
||||||
|
|
||||||
public constructor(private appIconPath: string) {
|
public constructor(private appIconPath: string, appStorage: Storage) {
|
||||||
const savedWindowState = windowStateKeeper({
|
const savedWindowState = windowStateKeeper({
|
||||||
defaultWidth: this.defaultWidth,
|
defaultWidth: this.defaultWidth,
|
||||||
defaultHeight: this.defaultHeight
|
defaultHeight: this.defaultHeight
|
||||||
|
@ -174,7 +174,7 @@ if (isDuplicateInstance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
const window = new AppWindow(appIconPath);
|
const window = new AppWindow(appIconPath, appStorage);
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
// const {
|
// const {
|
||||||
@ -213,6 +213,7 @@ function createWindow() {
|
|||||||
|
|
||||||
window.onDidLoad(() => {
|
window.onDidLoad(() => {
|
||||||
if (!appStorage.startupHideWindow) {
|
if (!appStorage.startupHideWindow) {
|
||||||
|
// not used?
|
||||||
window.show();
|
window.show();
|
||||||
} else {
|
} else {
|
||||||
window.hide();
|
window.hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user