Simplify new navigator window

This commit is contained in:
Elias Projahn 2021-02-02 10:25:34 +01:00
parent 23d260687c
commit 59ea1b9d95
3 changed files with 33 additions and 11 deletions

View file

@ -11,7 +11,7 @@ pub struct NavigatorWindow {
}
impl NavigatorWindow {
/// Create a new navigator window.
/// Create a new navigator window and show it.
pub fn new(backend: Rc<Backend>) -> Rc<Self> {
let window = libadwaita::Window::new();
window.set_default_size(600, 424);
@ -25,6 +25,8 @@ impl NavigatorWindow {
this.window.close();
}));
this.window.show();
this
}