I tried several ways to use grey-out buttons but there is a bug or something that is preventing me. The only way I found is multi-threading or simply leaving the main thread to wait for the backend to finish its job until it becomes available to the user. Multi-threading can allow the user to click the same button several times in a very short time creating as several concurrent threads attempting to do the same thing. I tried to prevent this by counting the number of thread objects created but there is a bug that is preventing the created object to decrement the variable when their destructor is called. So, I am sort of, stuck. :(
The only way that does not allow multiple similar threads is to allow the GUI to become momentarily unresponsive. Edward On 31/08/2015, Rainer Weikusat <rainerweiku...@virginmedia.com> wrote: > "tilt!" <t...@linuxfoo.de> writes: > >> Hi, >> >> been thinking about this for a while: >> >> It actually is correct that the frontend becomes irrepsonsive >> when the backend does a re-connect or re-scan. >> >> When a re-connect or re-scan is performed, the old information >> presented in the frontend is outdated, and the user should not >> click around on it anyway. > > It is unknown whether or not the information is outdated until the > results of the scan have been received and it is also unknown if the > results of the scan still reflect anything real by the time they're > received. > _______________________________________________ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng > _______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng