Rename FocusWindow to GainFocus in window::Action
This commit is contained in:
parent
81cd0c45b7
commit
dd25e93be0
2 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ pub enum Action<T> {
|
||||||
/// ## Platform-specific
|
/// ## Platform-specific
|
||||||
///
|
///
|
||||||
/// - **Web / Wayland:** Unsupported.
|
/// - **Web / Wayland:** Unsupported.
|
||||||
FocusWindow,
|
GainFocus,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Action<T> {
|
impl<T> Action<T> {
|
||||||
|
|
@ -94,7 +94,7 @@ impl<T> Action<T> {
|
||||||
Self::RequestUserAttention(attention_type) => {
|
Self::RequestUserAttention(attention_type) => {
|
||||||
Action::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(_) => {
|
Self::RequestUserAttention(_) => {
|
||||||
write!(f, "Action::RequestUserAttention")
|
write!(f, "Action::RequestUserAttention")
|
||||||
}
|
}
|
||||||
Self::FocusWindow => write!(f, "Action::FocusWindow"),
|
Self::GainFocus => write!(f, "Action::GainFocus"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -678,7 +678,7 @@ pub fn run_command<A, E>(
|
||||||
.request_user_attention(
|
.request_user_attention(
|
||||||
user_attention.map(conversion::user_attention),
|
user_attention.map(conversion::user_attention),
|
||||||
),
|
),
|
||||||
window::Action::FocusWindow => window.focus_window(),
|
window::Action::GainFocus => window.focus_window(),
|
||||||
},
|
},
|
||||||
command::Action::System(action) => match action {
|
command::Action::System(action) => match action {
|
||||||
system::Action::QueryInformation(_tag) => {
|
system::Action::QueryInformation(_tag) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue