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