mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Dock: the canvas panel has no content version and runs every pass
This commit is contained in:
1 parent
4109fb1c79
commit
b8463b4db5
1 file changed
+5
-1
@@ -187,7 +187,11 @@ impl DockPanels<String> for Panels<'_> {
|
||||
}
|
||||
|
||||
fn content(&self, panel: &String) -> Option<u64> {
|
||||
Some(super::region_versions::panel(self.app, panel))
|
||||
match panel.as_str() {
|
||||
// The canvas shows state that changes without a command: the view, redraw progress, animation and job overlays.
|
||||
CANVAS => None,
|
||||
_ => Some(super::region_versions::panel(self.app, panel)),
|
||||
}
|
||||
}
|
||||
|
||||
/// The canvas group is the document area: it draws its own tabs and documents in the group's rect. The toolbar's
|
||||
|
||||
Reference in new issue
Block a user