Fix adw dialog on hidden
This commit is contained in:
parent
c7b38d2dfe
commit
0a4ff5d59b
@ -177,9 +177,10 @@ pub fn apt_update_page(
|
||||
apt_update_dialog.set_response_enabled("apt_update_dialog_retry", false);
|
||||
apt_update_dialog.set_response_enabled("apt_update_dialog_ignore", false);
|
||||
|
||||
let retry_signal_action0 = retry_signal_action.clone();
|
||||
|
||||
{
|
||||
|
||||
if window.is_visible() {
|
||||
let retry_signal_action0 = retry_signal_action.clone();
|
||||
let viewport_bin = viewport_bin.clone();
|
||||
let flatpak_retry_signal_action = flatpak_retry_signal_action.clone();
|
||||
let flatpak_ran_once = flatpak_ran_once.clone();
|
||||
@ -480,7 +481,6 @@ pub fn apt_update_page(
|
||||
main_box.append(&viewport_bin);
|
||||
main_box.append(&bottom_bar);
|
||||
|
||||
apt_update_dialog.present();
|
||||
main_box
|
||||
}
|
||||
|
||||
|
@ -244,9 +244,8 @@ pub fn flatpak_update_page(
|
||||
flatpak_update_dialog.set_response_enabled("flatpak_update_dialog_retry", false);
|
||||
flatpak_update_dialog.set_response_enabled("flatpak_update_dialog_ignore", false);
|
||||
|
||||
if window.is_visible() {
|
||||
let retry_signal_action0 = retry_signal_action.clone();
|
||||
|
||||
{
|
||||
let viewport_bin = viewport_bin.clone();
|
||||
|
||||
flatpak_update_dialog
|
||||
@ -765,7 +764,6 @@ pub fn flatpak_update_page(
|
||||
main_box.append(&viewport_bin);
|
||||
main_box.append(&bottom_bar);
|
||||
|
||||
flatpak_update_dialog.present();
|
||||
main_box
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user