From 17f47d6fa47dd213c3ce78059d2eef911e4bebe2 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 17 Dec 2019 11:07:23 +0100 Subject: UpdateInfo: Do not show multiple update notfications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove existing notification before showing a new one. Otherwise checking for updates multiple times results in multiple stacked notifications. Change-Id: I1af07c005e88b297fbaebec7f5358fa46c09a84c Reviewed-by: André Hartmann Reviewed-by: David Schulz --- src/plugins/updateinfo/updateinfoplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index c602136ef2..3c047e6723 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -207,6 +207,7 @@ void UpdateInfoPlugin::checkForUpdatesFinished() label->setContentsMargins(0, 0, 0, 8); return label; }); + Core::ICore::infoBar()->removeInfo(InstallUpdates); // remove any existing notifications Core::ICore::infoBar()->unsuppressInfo(InstallUpdates); Core::ICore::infoBar()->addInfo(info); } else { -- cgit v1.2.3