Skip to content

Commit

Permalink
Fix for issue #55, #53
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Mar 31, 2020
1 parent b1cc61f commit 22e6d3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
node_modules/
node_modules/*
.webpack/
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,16 @@ if (!singleInstanceLock) {
trayIcon = undefined;
}

if (settings.get('settings').find(s => s.id === 'exitPrompt').value === true) {
let exitPromptSetting = settings.get('settings').find(s => s.id === 'exitPrompt');
let tabBarSetting = settings.get('settings').find(s => s.id === 'tabBar');

if (exitPromptSetting && exitPromptSetting.value === true) {
app.showExitPrompt = true;
} else {
app.showExitPrompt = false;
}

if (settings.get('settings').find(s => s.id === 'tabBar').value === true) {
if (tabBarSetting && tabBarSetting.value === true) {
mainWindow.webContents.send('set-tabbar', true);
} else {
mainWindow.webContents.send('set-tabbar', false);
Expand Down

0 comments on commit 22e6d3b

Please sign in to comment.