GNOME Bugzilla – Bug 778340
don't pile up 'My chef information' dialog
Last modified: 2017-02-09 23:55:37 UTC
Each time when the user clicks 'My chef information' from Application menu, a new dialog is shown, regardless of whether one is already shown or not. It may be better to not show a new dialog, when one is already shown. Thanks.
Created attachment 345239 [details] [review] Don't show a dialog when one is already shown The dialog windows can pile up each time import/chef information was clicked in applicaton menu. So, instead of always creating a new dialog, check if there is already one, and create only if there is none.
Review of attachment 345239 [details] [review]: Looking at this in some more detail, I'm afraid it is not quite right, and not quite what we need. 1) I don't like the 'is_dialog_open' business. The 'my chef information' and the 'recipe author' dialogs are independent, and I don't think we should prevent the former to be opened on top of the latter. 2) We currently don't handle nested modals right - e.g. try opening the about dialog on top of the my chef information dialog and try to drag the about dialog under gnome shell. I think the show_chef_dialog api is ok for the app menu case. What we need in addition is something akin to gnome-softwares' gs_shell_modal_dialog_present which keeps a stack of open modals.
Attachment 345239 [details] pushed as 977136e - Don't show a dialog when one is already shown