bug of tray is fixed

This commit is contained in:
병준 박 2019-11-18 16:49:41 +09:00
parent 686c859e74
commit 59e4a500d0
6 changed files with 17 additions and 9 deletions

View File

@ -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__) {

View File

@ -206,7 +206,7 @@ app.on(ElectronAppChannel.Ready, () => {
}
}
]);
appTray.setToolTip('WooriTalk');
appTray.setToolTip('UCapMessenger');
appTray.setContextMenu(contextMenu);
appTray.on('click', () => {

View File

@ -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);
}

View File

@ -11,7 +11,7 @@ import {
export const environment: Environment = {
production: false,
title: `[개발] Woori TALK`,
title: `[개발] UCapMessenger`,
commonApiModuleConfig: {
hostConfig: {

View File

@ -11,7 +11,7 @@ import {
export const environment: Environment = {
production: true,
title: `[개발] Woori TALK`,
title: `[개발] UCapMessenger`,
commonApiModuleConfig: {
hostConfig: {

View File

@ -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;