Browse Source

Add default serverType setting

master
jeffvli 3 years ago
committed by Jeff
parent
commit
c3ac1bb49c
  1. 4
      src/components/shared/setDefaultSettings.ts
  2. 1
      src/shared/mockSettings.ts

4
src/components/shared/setDefaultSettings.ts

@ -2,6 +2,10 @@ import settings from 'electron-settings';
import path from 'path';
const setDefaultSettings = (force: boolean) => {
if (force || !settings.hasSync('serverType')) {
settings.setSync('serverType', 'subsonic');
}
if (force || !settings.hasSync('legacyAuth')) {
settings.setSync('legacyAuth', false);
}

1
src/shared/mockSettings.ts

@ -1,4 +1,5 @@
export const mockSettings = {
serverType: 'subsonic',
theme: 'defaultDark',
showDebugWindow: false,
globalMediaHotkeys: true,

Loading…
Cancel
Save