[vlc-commits] [Git][videolan/vlc][master] qt: clear application badge on exit

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 12 06:19:07 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
04f8c036 by Fatih Uzunoglu at 2025-08-12T05:51:16+00:00
qt: clear application badge on exit

The badge number seems to be persistent at least
in KDE Plasma. We are currently using badge number
to represent the errors encountered, and since
errors are not persistent, the badge should also
not be.

- - - - -


1 changed file:

- modules/gui/qt/dialogs/dialogs/dialogmodel.cpp


Changes:

=====================================
modules/gui/qt/dialogs/dialogs/dialogmodel.cpp
=====================================
@@ -41,6 +41,11 @@ DialogErrorModel::DialogErrorModel(qt_intf_t * intf, QObject * parent)
 DialogErrorModel::~DialogErrorModel()
 {
     vlc_dialog_provider_set_error_callback(m_intf, nullptr, nullptr);
+
+#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+    assert(qGuiApp);
+    qGuiApp->setBadgeNumber(0);
+#endif
 }
 
 //-------------------------------------------------------------------------------------------------



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/04f8c036a9339d0e5590c53ad5413ec44c11529b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/04f8c036a9339d0e5590c53ad5413ec44c11529b
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list