Skip to content

Commit a110e28

Browse files
committed
Close the dialog only if its not already closed
1 parent b95dabf commit a110e28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/window.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ impl DistroShelfWindow {
163163
this.root_store()
164164
.connect_current_dialog_notify(move |root_store| {
165165
if let Some(dialog) = this_clone.current_dialog() {
166-
dialog.close();
166+
if dialog.parent().is_some() {
167+
dialog.close();
168+
}
167169
}
168170
let dialog: adw::Dialog = match dbg!(root_store.current_dialog().tag().as_str()) {
169171
"exportable-apps" => ExportableAppsDialog::new(

0 commit comments

Comments
 (0)