propertiesView: Disable open folder for non-native
The GTK API only support native files for opening the parent directory. Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/207>
This commit is contained in:
parent
d4f351bf5b
commit
bea6ad018b
1 changed files with 4 additions and 1 deletions
|
|
@ -150,7 +150,10 @@ impl LpPropertiesView {
|
|||
fn set_file(&self, file: Option<&gio::File>) {
|
||||
let imp = self.imp();
|
||||
|
||||
self.action_set_enabled("properties.open-folder", file.is_some());
|
||||
self.action_set_enabled(
|
||||
"properties.open-folder",
|
||||
file.map_or(false, |x| x.is_native()),
|
||||
);
|
||||
|
||||
if let Some(file) = file {
|
||||
if let Some(current_file) = self.file() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue