mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
implement local directory browser widget
This commit is contained in:
parent
2a1f4a89ac
commit
7cd5555aa2
4 changed files with 131 additions and 27 deletions
|
|
@ -0,0 +1,14 @@
|
|||
use gtk::{gio::File, prelude::FileExt};
|
||||
|
||||
pub struct Directory {
|
||||
pub file: File,
|
||||
}
|
||||
|
||||
impl Directory {
|
||||
pub fn handle(&self, page: &super::Page) {
|
||||
page.content.to_directory(&self.file);
|
||||
page.set_title(&self.file.parse_name());
|
||||
page.set_progress(0.0);
|
||||
page.window_action.find.simple_action.set_enabled(false);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue