mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-07 15:55:00 +00:00
fix: pivot use disabled method
This commit is contained in:
parent
1ec29743c3
commit
9a05bbe46d
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ use std::fmt;
|
|||
pub fn pin_pivot_widget(inactive: bool, enabled: bool, source: Source) -> WidgetHolder {
|
||||
IconButton::new(if inactive { "PinInactive" } else { "PinActive" }, 24)
|
||||
.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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue