mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-27 02:27:18 +00:00
improved preview
This commit is contained in:
1 parent
b64c192c4f
commit
9033401094
11 files changed
+109
-4
No files matched your search
@@ -88,6 +88,16 @@ pub fn open_paths(
|
||||
})
|
||||
}
|
||||
|
||||
/// The files are open for good: the preview among them is not a preview anymore (the user did
|
||||
/// something to it that the engine does not see, like hiding it).
|
||||
#[tauri::command(async)]
|
||||
pub fn keep_files(state: State<AppState>, file_ids: Vec<Uuid>) {
|
||||
state.core(move |core| {
|
||||
core.workspace.keep(&file_ids);
|
||||
core.commit(None);
|
||||
})
|
||||
}
|
||||
|
||||
/// Writes the files among `ids` that are not the ones on the disk, asking where to put the ones
|
||||
/// that have no place: the file dialog for a single one, a folder for several of them. Says whether
|
||||
/// they were written, which is not the case if the user cancelled.
|
||||
|
||||
Reference in new issue
Block a user