From 81a1899dcf9884ca9049889125cce853df3b9ef7 Mon Sep 17 00:00:00 2001 From: Preston Date: Thu, 26 Mar 2020 22:50:02 -0400 Subject: [PATCH 1/2] Fix changing the top bar to match the color theme. --- src/renderer/store/modules/settings.js | 4 +++- src/renderer/store/modules/subscriptions.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js index a85c8dec..d33bdb81 100644 --- a/src/renderer/store/modules/settings.js +++ b/src/renderer/store/modules/settings.js @@ -1,5 +1,7 @@ +import electron from 'electron' import Datastore from 'nedb' -const localDataStorage = '/db' +// TODO: Add logic for database when electron is not in use +const localDataStorage = electron.remote.app.getPath('userData') const settingsDb = new Datastore({ filename: localDataStorage + '/settings.db', diff --git a/src/renderer/store/modules/subscriptions.js b/src/renderer/store/modules/subscriptions.js index b0894598..76abb26d 100644 --- a/src/renderer/store/modules/subscriptions.js +++ b/src/renderer/store/modules/subscriptions.js @@ -1,5 +1,7 @@ +import electron from 'electron' import Datastore from 'nedb' -const localDataStorage = '/db' +// TODO: Add logic for database when electron is not in use +const localDataStorage = electron.remote.app.getPath('userData') const subDb = new Datastore({ filename: localDataStorage + '/subscriptions.db', From 7283d7fb364fb4c82700b38d0ce3ee2116f85f41 Mon Sep 17 00:00:00 2001 From: Preston Date: Thu, 26 Mar 2020 23:04:50 -0400 Subject: [PATCH 2/2] Remove minimum height and width for app screen size --- src/main/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index f590beb2..ff3cc566 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -51,8 +51,6 @@ function createWindow () { backgroundColor: '#fff', width: 960, height: 540, - minWidth: 960, - minHeight: 540, // useContentSize: true, webPreferences: { nodeIntegration: true,