bugfix :: appStorage 에 config.dat 파일에 대한 rename 오류 추정 수정.

This commit is contained in:
leejinho 2020-03-17 16:31:06 +09:00
parent 4900ba729c
commit b5fade50de
2 changed files with 4 additions and 3 deletions

View File

@ -14,8 +14,8 @@ import {
ElectronWebContentsChannel
} from '@ucap-webmessenger/electron-core';
import { appStorage } from '../lib/storage';
import { now } from '../util/now';
import { Storage } from '../lib/storage';
export class AppWindow {
private window: BrowserWindow | null = null;
@ -33,7 +33,7 @@ export class AppWindow {
private defaultWidth = 1160;
private defaultHeight = 800;
public constructor(private appIconPath: string) {
public constructor(private appIconPath: string, appStorage: Storage) {
const savedWindowState = windowStateKeeper({
defaultWidth: this.defaultWidth,
defaultHeight: this.defaultHeight

View File

@ -174,7 +174,7 @@ if (isDuplicateInstance) {
}
function createWindow() {
const window = new AppWindow(appIconPath);
const window = new AppWindow(appIconPath, appStorage);
if (__DEV__) {
// const {
@ -213,6 +213,7 @@ function createWindow() {
window.onDidLoad(() => {
if (!appStorage.startupHideWindow) {
// not used?
window.show();
} else {
window.hide();