[connect] untested sync backend

This commit is contained in:
child_duckling 2022-05-01 17:54:37 -07:00
parent e1c7def8bc
commit 825d1b3bc2
2 changed files with 55 additions and 3 deletions

View file

@ -37,6 +37,7 @@ export class BrowserWindow {
platform: process.platform,
dev: app.isPackaged,
osRelease: os.release(),
updatable: !process.windowsStore || !process.mas,
components: [
"pages/podcasts",
"pages/apple-account-settings",
@ -1214,13 +1215,20 @@ export class BrowserWindow {
shell.openPath(app.getPath('userData'));
});
//#region Cider Connect
ipcMain.on('cc-auth', (_event) => {
shell.openExternal(String(utils.getStoreValue('cc_authURL')));
});
ipcMain.on('cc-logout', (_event) => {
ipcMain.on('cc-logout', (_event) => { //Make sure to update the default store
utils.setStoreValue('connectUser', {
auth: null
"auth": null,
"sync": {
themes: false,
plugins: false,
settings: false,
}
});
utils.getWindow().reload();
});