diff --git a/client/src/ui/components/bd/SuperSecretView.vue b/client/src/ui/components/bd/SuperSecretView.vue index a5d2cc30..218cb0ea 100644 --- a/client/src/ui/components/bd/SuperSecretView.vue +++ b/client/src/ui/components/bd/SuperSecretView.vue @@ -12,8 +12,9 @@
Force Update - Config Debug + Check for Updates Update UI Test + Config Debug
@@ -38,6 +39,9 @@ forceUpdate() { ClientIPC.send('debug-updater-forceUpdate'); }, + checkForUpdates() { + ClientIPC.send('debug-updater-checkForUpdates'); + }, debugConfig() { console.log(Globals); }, diff --git a/core/src/modules/updater.js b/core/src/modules/updater.js index 4c82f032..c01b90f0 100644 --- a/core/src/modules/updater.js +++ b/core/src/modules/updater.js @@ -84,9 +84,14 @@ export default class Updater extends Module { clearInterval(this.updaterThread); this.updateAll(updates); }); + ipc.on('debug-updater-forceUpdate', () => { this.checkForUpdates(true); }); + + ipc.on('debug-updater-checkForUpdates', () => { + this.checkForUpdates(); + }); } async updateBd(update) { @@ -217,7 +222,7 @@ export default class Updater extends Module { } async checkForUpdates(forced = false) { - console.log('[BetterDiscord:Updater] Checking for updates'); + console.log('[BetterDiscord:Updater] Checking for updates', forced); this.bd.sendToDiscord('updater-checkForUpdates', ''); try {