clean: rename Modifiers message to ModifiersChanged
to be more explicit/accurate.
This commit is contained in:
parent
1a66d7b184
commit
d8a198e836
2 changed files with 6 additions and 6 deletions
|
|
@ -315,7 +315,7 @@ pub enum Message {
|
|||
Key(Modifiers, Key, Option<SmolStr>),
|
||||
LaunchUrl(String),
|
||||
MaybeExit,
|
||||
Modifiers(Modifiers),
|
||||
ModifiersChanged(Modifiers),
|
||||
MounterItems(MounterKey, MounterItems),
|
||||
MountResult(MounterKey, MounterItem, Result<bool, String>),
|
||||
NavBarClose(Entity),
|
||||
|
|
@ -2627,7 +2627,7 @@ impl Application for App {
|
|||
log::warn!("failed to open {:?}: {}", url, err);
|
||||
}
|
||||
},
|
||||
Message::Modifiers(modifiers) => {
|
||||
Message::ModifiersChanged(modifiers) => {
|
||||
self.modifiers = modifiers;
|
||||
}
|
||||
Message::MounterItems(mounter_key, mounter_items) => {
|
||||
|
|
@ -5187,7 +5187,7 @@ impl Application for App {
|
|||
event::Status::Captured => None,
|
||||
},
|
||||
Event::Keyboard(KeyEvent::ModifiersChanged(modifiers)) => {
|
||||
Some(Message::Modifiers(modifiers))
|
||||
Some(Message::ModifiersChanged(modifiers))
|
||||
}
|
||||
Event::Window(WindowEvent::Unfocused) => Some(Message::WindowUnfocus),
|
||||
#[cfg(all(feature = "desktop", feature = "wayland"))]
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ enum Message {
|
|||
Filename(String),
|
||||
Filter(usize),
|
||||
Key(Modifiers, Key),
|
||||
Modifiers(Modifiers),
|
||||
ModifiersChanged(Modifiers),
|
||||
MounterItems(MounterKey, MounterItems),
|
||||
NewFolder,
|
||||
NotifyEvents(Vec<DebouncedEvent>),
|
||||
|
|
@ -1290,7 +1290,7 @@ impl Application for App {
|
|||
}
|
||||
}
|
||||
}
|
||||
Message::Modifiers(modifiers) => {
|
||||
Message::ModifiersChanged(modifiers) => {
|
||||
self.modifiers = modifiers;
|
||||
}
|
||||
Message::MounterItems(mounter_key, mounter_items) => {
|
||||
|
|
@ -1757,7 +1757,7 @@ impl Application for App {
|
|||
event::Status::Captured => None,
|
||||
},
|
||||
Event::Keyboard(KeyEvent::ModifiersChanged(modifiers)) => {
|
||||
Some(Message::Modifiers(modifiers))
|
||||
Some(Message::ModifiersChanged(modifiers))
|
||||
}
|
||||
Event::Mouse(mouse::Event::CursorMoved { position: pos }) => {
|
||||
Some(Message::CursorMoved(pos))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue