From e55a8defcdd277ad580627c6f34c2e8668b3f6d5 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien <23700969+mwittrien@users.noreply.github.com> Date: Thu, 26 May 2022 14:28:36 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 316b6d2b92..2cb00933f5 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -9146,17 +9146,11 @@ module.exports = (_ => { }) }), onClick: _ => { - let loadingString = `${BDFDB.LanguageUtils.LanguageStrings.CHECKING_FOR_UPDATES} - ${BDFDB.LanguageUtils.LibraryStrings.please_wait}`; - let currentLoadingString = loadingString; - let toastInterval, toast = BDFDB.NotificationUtils.toast(loadingString, { + let toast = BDFDB.NotificationUtils.toast(`${BDFDB.LanguageUtils.LanguageStrings.CHECKING_FOR_UPDATES} - ${BDFDB.LanguageUtils.LibraryStrings.please_wait}`, { type: "info", timeout: 0, - onClose: _ => BDFDB.TimeUtils.clear(toastInterval) + ellipsis: true }); - toastInterval = BDFDB.TimeUtils.interval(_ => { - currentLoadingString = currentLoadingString.endsWith(".....") ? loadingString : currentLoadingString + "."; - toast.update(currentLoadingString); - }, 500); BDFDB.PluginUtils.checkAllUpdates().then(outdated => { toast.close(); if (outdated > 0) BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("update_check_complete_outdated", outdated), {