mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-30 19:22:37 -04:00
Add default serverType setting
This commit is contained in:
@@ -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,4 +1,5 @@
|
||||
export const mockSettings = {
|
||||
serverType: 'subsonic',
|
||||
theme: 'defaultDark',
|
||||
showDebugWindow: false,
|
||||
globalMediaHotkeys: true,
|
||||
|
||||
Reference in New Issue
Block a user