Index: kstars/indi/indilistener.cpp =================================================================== --- kstars/indi/indilistener.cpp +++ kstars/indi/indilistener.cpp @@ -30,6 +30,8 @@ #include +#include + #define NINDI_STD 35 /* INDI standard property used across all clients to enable interoperability. */ @@ -431,5 +433,11 @@ if (colonIndex > 0) displayMessage = displayMessage.mid(colonIndex+2); - KSNotification::transient(displayMessage, i18n("INDI Server Message")); + if (Options::messageNotificationINDI()) + { + KNotification::event(QLatin1String("IndiServerMessage"), + displayMessage); + } else { + KSNotification::transient(displayMessage, i18n("INDI Server Message")); + } } Index: kstars/indi/opsindi.ui =================================================================== --- kstars/indi/opsindi.ui +++ kstars/indi/opsindi.ui @@ -384,6 +384,16 @@ + + + Show INDI messages as desktop notifications instead of dialogs + + + Message notifications + + + + Qt::Vertical Index: kstars/kstars.kcfg =================================================================== --- kstars/kstars.kcfg +++ kstars/kstars.kcfg @@ -161,6 +161,11 @@ Toggle display of INDI messages in the KStars statusbar. true + + + Show INDI messages as desktop notifications instead of dialogs. + true + true Index: kstars/kstars.notifyrc =================================================================== --- kstars/kstars.notifyrc +++ kstars/kstars.notifyrc @@ -1154,3 +1154,7 @@ Comment[tr]=Kaide elle hareket tamamlandı Comment[uk]=Рух лафета вручну завершено Comment[x-test]=xxMount manual motion completedxx +[Event/IndiServerMessage] +Name=INDI Server Message +Comment=INDI Server Message (it must be enabled in INDI section of Settings) +Action=Popup