https://bugs.kde.org/show_bug.cgi?id=486911

--- Comment #1 from yan12125 <yu3actxt2tttf...@chyen.cc> ---
The bug seems caused by
https://invent.kde.org/frameworks/knotifications/-/commit/0b0cb05ce751ca5524f774224632668a0ea48c30#e522d5d47789104af70f49d867223dfc2d02bf0d_192_195.
After that commit, actionsString always starts with a semicolon. A possible fix
might be:

diff --git a/src/notifybysnore.cpp b/src/notifybysnore.cpp
index a82d0a4..3a7aa2d 100644
--- a/src/notifybysnore.cpp
+++ b/src/notifybysnore.cpp
@@ -192,7 +192,10 @@ void NotifyBySnore::notifyDeferred(KNotification
*notification)

         for (KNotificationAction *action : actions) {
             action->setId(action->label());
-            actionsString += QLatin1Char(';') + action->label();
+            if (!actionsString.isEmpty()) {
+                actionsString += QLatin1Char(';');
+            }
+            actionsString += action->label();
         }

         snoretoastArgsList << QStringLiteral("-b") << actionsString;

I didn't test it, as https://community.kde.org/KDEConnect/Build_Windows
suggests Visual Studio, and I had bad experience with that huge IDE.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to