mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
deactivate save_as action for file browser tabs
This commit is contained in:
parent
fb9ef36893
commit
4c0200799b
4 changed files with 14 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ pub trait Request {
|
|||
fn source(&self) -> GString;
|
||||
fn uri(&self) -> Option<Uri>;
|
||||
fn home(&self) -> Option<Uri>;
|
||||
fn is_file(&self) -> bool;
|
||||
}
|
||||
|
||||
impl Request for Entry {
|
||||
|
|
@ -360,6 +361,10 @@ impl Request for Entry {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
fn is_file(&self) -> bool {
|
||||
self.text().starts_with("file://")
|
||||
}
|
||||
}
|
||||
|
||||
// Tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue