summaryrefslogtreecommitdiff
path: root/client/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.js')
-rwxr-xr-xclient/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/main.js b/client/main.js
index 7a1e9c8..dc8de43 100755
--- a/client/main.js
+++ b/client/main.js
@@ -75,7 +75,7 @@ const createWindow = () => {
if (!mainWindow.isFocused()) {
if (os.platform() === "win32" || os.platform() === "linux") {
mainWindow.setProgressBar(1, {
- mode: "indeterminate"
+ mode: "paused"
});
} else {
mainWindow.flashFrame(true);
@@ -111,10 +111,10 @@ app.whenReady().then(() => {
globalShortcut.register('Alt+CommandOrControl+C', () => {
if (mainWindow) {
try {
- if (mainWindow.isVisible()) {
- mainWindow.hide();
+ if (mainWindow.isMinimized()) {
+ mainWindow.restore();
} else {
- mainWindow.show();
+ mainWindow.minimize();
}
} catch (e) {}
}