mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 20:17:17 +02:00
[ui] AttributeEditor: add contextual actions on File params
* add 'Open Containing Folder'/'Open File' actions for filepaths * add 'Open Folder' action for folders * misc: tweak spacings
This commit is contained in:
parent
c45ebdf83c
commit
60f1f36ff8
3 changed files with 33 additions and 2 deletions
|
@ -15,3 +15,10 @@ function extension(path) {
|
|||
var dot_pos = path.lastIndexOf('.');
|
||||
return dot_pos > -1 ? path.substring(dot_pos, path.length) : ""
|
||||
}
|
||||
|
||||
/// Return whether the given path is a path to a file.
|
||||
/// (only based on the fact that the last portion of the path
|
||||
/// matches the 'basename.extension' pattern)
|
||||
function isFile(path) {
|
||||
return extension(path) !== ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue