Global flag to suppress popups?

Jasem Mutlaq mutlaqja at ikarustech.com
Tue Apr 20 06:37:57 BST 2021


Hello everyone,

What do you guys think about having a global flag that would suppose any
KSMessageBox messages? This can be set for example when Ekos scheduler is
running, and for any errors that would end up as a popup, this would just
block the program.

I've actually fixed quite a few of these cases before and redirected the
output to the log instead of blocking KSMessage. Please note that we have
KSMessageBox class that has pop ups with timeouts (why isn't this a
standard in KDE or Qt?).

So we have a couple of options:

1. Create a global flag where it suppresses any calls to
KSNotication::sorry or KSNotification:error ..etc
2. Convert all existing KSNotification::error..etc to a non-blocking
timer-based KSMessageBox?

This is of course for the next release of KStars, not 3.5.3 which is
already overdue.
--
Best Regards,
Jasem Mutlaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20210420/b59ba886/attachment.htm>


More information about the Kstars-devel mailing list