[connect] puuuuuuuuuussssssssshhhhhhhhhhhhhh penis parker 2.0

This commit is contained in:
child_duckling 2022-04-22 19:47:01 -07:00
parent 7b1d9e6849
commit 39e952c15b
3 changed files with 60 additions and 4 deletions

View file

@ -1203,6 +1203,13 @@ export class BrowserWindow {
ipcMain.on('cc-auth', (_event) => {
shell.openExternal(String(utils.getStoreValue('cc_authURL')));
});
ipcMain.on('cc-logout', (_event) => {
utils.setStoreValue('connectUser', {
auth: null
});
utils.getWindow().reload();
});
/* *********************************************************************************************
* Window Events
* **********************************************************************************************/