Rename FocusWindow to GainFocus in window::Action

This commit is contained in:
Héctor Ramón Jiménez 2023-01-02 21:14:41 +01:00
parent 81cd0c45b7
commit dd25e93be0
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ pub enum Action<T> {
/// ## Platform-specific
///
/// - **Web / Wayland:** Unsupported.
FocusWindow,
GainFocus,
}
impl<T> Action<T> {
@ -94,7 +94,7 @@ impl<T> Action<T> {
Self::RequestUserAttention(attention_type) => {
Action::RequestUserAttention(attention_type)
}
Self::FocusWindow => Action::FocusWindow,
Self::GainFocus => Action::GainFocus,
}
}
}
@ -121,7 +121,7 @@ impl<T> fmt::Debug for Action<T> {
Self::RequestUserAttention(_) => {
write!(f, "Action::RequestUserAttention")
}
Self::FocusWindow => write!(f, "Action::FocusWindow"),
Self::GainFocus => write!(f, "Action::GainFocus"),
}
}
}