This commit is contained in:
bflatastic committed 2026-11-18 08:21:14 +07:00
commit 9da30de7aa
41 files changed
+217 -8

No files matched your search

+6
View File
@@ -122,6 +122,12 @@ impl Session {
self.tool.id()
}
/// The selection tool chosen last (Selection, Direct Selection or Group Selection), which
/// `tool.selectLastSelection` chooses: the Selection tool until one is chosen.
pub fn last_selection_tool(&self) -> &'static str {
self.last_selection_tool.unwrap_or("selection")
}
/// How many times switching or closing documents, or replacing the active one (File › Revert),
/// has started the tool afresh, also inside a `command.batch` or `action.batch`. A frontend
/// compares it before and after a command.