Global flag to suppress popups?
Wolfgang Reissenberger
sterne-jaeger at openfuture.de
Tue Apr 20 10:08:21 BST 2021
Good point, these message boxes are not a good idea for running KStars in a (more or less) unattended way.
I would even opt for having both, so having the option to avoid message boxes in general plus making all message boxes non-blocking timer-based.
Wolfgang
> Am 20.04.2021 um 07:37 schrieb Jasem Mutlaq <mutlaqja at ikarustech.com>:
>
> 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
>
More information about the Kstars-devel
mailing list