diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-12-17 11:07:23 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-12-17 13:10:35 +0000 |
commit | 17f47d6fa47dd213c3ce78059d2eef911e4bebe2 (patch) | |
tree | b8bfe532eee0c15e5f385e621489568d70b15800 | |
parent | 141d5e24126ef919ad624b04e8c959c664e9e410 (diff) |
UpdateInfo: Do not show multiple update notfications
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 <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r-- | src/plugins/updateinfo/updateinfoplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |