mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Simplify new navigator window
This commit is contained in:
parent
23d260687c
commit
59ea1b9d95
3 changed files with 33 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue