window: Don't store window to avoid ref cycles

Use root() instead and move one constructor to on root for having the
root available.
This commit is contained in:
Sophie Herold 2024-12-18 17:12:17 +01:00
parent 8345640757
commit b9f22ebfc3
12 changed files with 77 additions and 51 deletions

View file

@ -21,6 +21,7 @@ use gtk::CompositeTemplate;
use crate::deps::*;
use crate::util::gettext::*;
use crate::util::ErrorType;
mod imp {
use super::*;
@ -108,12 +109,8 @@ impl LpErrorDetails {
}
));
log::debug!("Showing error details");
obj.present(Some(root));
obj
}
}
pub enum ErrorType {
Loader,
General,
}