bug of tray is fixed
This commit is contained in:
parent
686c859e74
commit
59e4a500d0
|
@ -80,12 +80,23 @@ export class AppWindow {
|
||||||
// renderer.
|
// renderer.
|
||||||
if (__DARWIN__) {
|
if (__DARWIN__) {
|
||||||
this.window.on(ElectronBrowserWindowChannel.Close, e => {
|
this.window.on(ElectronBrowserWindowChannel.Close, e => {
|
||||||
this.window.hide();
|
|
||||||
|
|
||||||
if (!quitting) {
|
if (!quitting) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else if (__WIN32__) {
|
||||||
|
this.window.on(ElectronBrowserWindowChannel.Minimize, e => {
|
||||||
|
if (!quitting) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.window.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.window.on(ElectronBrowserWindowChannel.Close, e => {
|
||||||
|
if (!quitting) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.window.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__WIN32__) {
|
if (__WIN32__) {
|
||||||
|
|
|
@ -206,7 +206,7 @@ app.on(ElectronAppChannel.Ready, () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
appTray.setToolTip('WooriTalk');
|
appTray.setToolTip('UCapMessenger');
|
||||||
appTray.setContextMenu(contextMenu);
|
appTray.setContextMenu(contextMenu);
|
||||||
|
|
||||||
appTray.on('click', () => {
|
appTray.on('click', () => {
|
||||||
|
|
|
@ -51,11 +51,9 @@ export class IdleChecker {
|
||||||
// global.opt_idleTimeLimit = limitedMin;
|
// global.opt_idleTimeLimit = limitedMin;
|
||||||
|
|
||||||
this.startChecker();
|
this.startChecker();
|
||||||
console.log('RESET IDLE TIMER in ' + limitedMin + 'm');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public startChecker() {
|
public startChecker() {
|
||||||
console.log('Idle Checker Start');
|
|
||||||
if (!this.intervalObject) {
|
if (!this.intervalObject) {
|
||||||
this.intervalObject = setInterval(() => {
|
this.intervalObject = setInterval(() => {
|
||||||
this.doCheckIdle();
|
this.doCheckIdle();
|
||||||
|
@ -64,7 +62,6 @@ export class IdleChecker {
|
||||||
}
|
}
|
||||||
|
|
||||||
public destoryChecker() {
|
public destoryChecker() {
|
||||||
console.log('Idle Checker Destory');
|
|
||||||
if (!!this.intervalObject) {
|
if (!!this.intervalObject) {
|
||||||
clearInterval(this.intervalObject);
|
clearInterval(this.intervalObject);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
|
|
||||||
export const environment: Environment = {
|
export const environment: Environment = {
|
||||||
production: false,
|
production: false,
|
||||||
title: `[개발] Woori TALK`,
|
title: `[개발] UCapMessenger`,
|
||||||
|
|
||||||
commonApiModuleConfig: {
|
commonApiModuleConfig: {
|
||||||
hostConfig: {
|
hostConfig: {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
|
|
||||||
export const environment: Environment = {
|
export const environment: Environment = {
|
||||||
production: true,
|
production: true,
|
||||||
title: `[개발] Woori TALK`,
|
title: `[개발] UCapMessenger`,
|
||||||
|
|
||||||
commonApiModuleConfig: {
|
commonApiModuleConfig: {
|
||||||
hostConfig: {
|
hostConfig: {
|
||||||
|
|
|
@ -559,7 +559,7 @@ export const commonApiacceptableFileExtensions: string[] = [
|
||||||
// export function build(production: boolean): Environment {
|
// export function build(production: boolean): Environment {
|
||||||
// const devServer = false;
|
// const devServer = false;
|
||||||
// const useSsl = false;
|
// const useSsl = false;
|
||||||
// const title = 'Woori TALK';
|
// const title = 'UCapMessenger';
|
||||||
|
|
||||||
// const webDomain = devServer ? 'bizucap.uplus.co.kr' : '27.122.224.170';
|
// const webDomain = devServer ? 'bizucap.uplus.co.kr' : '27.122.224.170';
|
||||||
// const webPort = devServer ? 80 : 8011;
|
// const webPort = devServer ? 80 : 8011;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user