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:
parent
8345640757
commit
b9f22ebfc3
12 changed files with 77 additions and 51 deletions
|
|
@ -17,6 +17,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
pub mod gettext;
|
||||
pub mod root;
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::fmt::{Debug, Write};
|
||||
|
|
@ -261,3 +262,8 @@ pub fn locale_settings() -> LocaleSettings {
|
|||
locale_settings
|
||||
}
|
||||
}
|
||||
|
||||
pub enum ErrorType {
|
||||
Loader,
|
||||
General,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue