mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Repaint the Classic preview after an opacity edit
This commit is contained in:
1 parent
f2bb1978b4
commit
8020ed7c7f
1 file changed
+4
@@ -123,6 +123,10 @@ pub(crate) fn bar(app: &mut PhotocraftApp, ui: &mut egui::Ui) {
|
||||
if let Some(at) = presets {
|
||||
preset_picker(app, ui, at);
|
||||
}
|
||||
if before.fill_opacity != app.ui.tool_options.fill_opacity {
|
||||
// The swatch painted before the Opacity field accepted the edit.
|
||||
craft::ui::runtime::frame::request_repaint(ui.ctx());
|
||||
}
|
||||
options_changed(app, &before);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user