Merge pull request #8706 from dotCooCoo/fix/setoption-survives-dropped-press

Tools: an option set during a press survives the press being dropped
This commit is contained in:
BFlat
2026-11-20 01:01:44 +07:00
committed by GitHub
5 changed files with 153 additions and 7 deletions
+7
View File
@@ -752,6 +752,13 @@ impl Session {
t.set_option("cornerRadius", &r);
}
}
// A press of the tool that is dropped keeps the new radius, also when the tool lent a
// selection tool for the press.
if self.press_taken_by("roundedRectangle")
&& let Some((_, saved)) = self.press_options.as_mut()
{
saved.insert("cornerRadius".into(), r);
}
}
if fonts_folder_changed {
let folder = self.prefs.fonts_folder.trim();