mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-07 15:55:00 +00:00
fix: remove redudant NoOp
This commit is contained in:
parent
9a05bbe46d
commit
f392ba9e92
1 changed files with 2 additions and 3 deletions
|
@ -17,9 +17,8 @@ pub fn pin_pivot_widget(inactive: bool, enabled: bool, source: Source) -> Widget
|
|||
.tooltip(if inactive { "Pin Transform Pivot" } else { "Unpin Transform Pivot" })
|
||||
.disabled(!enabled)
|
||||
.on_update(move |_| match source {
|
||||
Source::Select if enabled => SelectToolMessage::SelectOptions(SelectOptionsUpdate::TogglePivotPinned()).into(),
|
||||
Source::Path if enabled => PathToolMessage::UpdateOptions(PathOptionsUpdate::TogglePivotPinned()).into(),
|
||||
_ => Message::NoOp,
|
||||
Source::Select => SelectToolMessage::SelectOptions(SelectOptionsUpdate::TogglePivotPinned()).into(),
|
||||
Source::Path => PathToolMessage::UpdateOptions(PathOptionsUpdate::TogglePivotPinned()).into(),
|
||||
})
|
||||
.widget_holder()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue