mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add UI to import folders
This commit is contained in:
parent
0eacd255e8
commit
3b82bb3ef2
2 changed files with 22 additions and 43 deletions
|
|
@ -28,7 +28,8 @@ impl SourceSelector {
|
|||
get_widget!(builder, gtk::Button, back_button);
|
||||
get_widget!(builder, gtk::Stack, stack);
|
||||
get_widget!(builder, gtk::InfoBar, info_bar);
|
||||
get_widget!(builder, gtk::Button, import_button);
|
||||
get_widget!(builder, gtk::Button, folder_button);
|
||||
get_widget!(builder, gtk::Button, disc_button);
|
||||
|
||||
let this = Rc::new(Self {
|
||||
backend,
|
||||
|
|
@ -47,7 +48,7 @@ impl SourceSelector {
|
|||
}
|
||||
}));
|
||||
|
||||
import_button.connect_clicked(clone!(@strong this => move |_| {
|
||||
disc_button.connect_clicked(clone!(@strong this => move |_| {
|
||||
this.stack.set_visible_child_name("loading");
|
||||
|
||||
let context = glib::MainContext::default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue