From bf73fff4eef9a688d804f51c3796de720420df9d Mon Sep 17 00:00:00 2001 From: Jiiks Date: Fri, 8 Mar 2019 15:15:58 +0200 Subject: [PATCH] add check for updates button --- client/src/ui/components/bd/SuperSecretView.vue | 6 +++++- core/src/modules/updater.js | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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 {