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
+4
-2
@@ -108,8 +108,10 @@ impl Core {
|
||||
self.workspace.keep(&[id]);
|
||||
}
|
||||
let (renamed, errors) = self.workspace.follow_names(&mut self.engine, &names);
|
||||
if kept || renamed {
|
||||
self.commit(None);
|
||||
// and it goes when something else is selected
|
||||
let dropped = self.workspace.drop_preview(&mut self.engine);
|
||||
if kept || renamed || dropped.is_some() {
|
||||
self.commit(dropped.as_ref());
|
||||
} else {
|
||||
self.persist();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user