Skip to content

Commit

Permalink
#1081 Multiple changes
Browse files Browse the repository at this point in the history
- Fix "Fire after timeout" "Press-only" fire even after released
- Hide button filter dropdown in single/double-press fire modes
  • Loading branch information
helgoboss committed Aug 9, 2024
1 parent f878413 commit 1aaa326
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions main/src/application/mapping_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ impl MappingModel {
// Any is okay, will be overwritten.
source_character: DetailedSourceCharacter::RangeControl,
absolute_mode: self.mode_model.absolute_mode(),
fire_mode: self.mode_model.fire_mode(),
target_value_sequence_is_set: !self.mode_model.target_value_sequence().is_empty(),
}
}
Expand Down
5 changes: 4 additions & 1 deletion main/src/infrastructure/ui/mapping_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ impl MappingPanel {
P::Reverse => {
view.invalidate_mode_reverse_check_box();
}
P::PressDurationInterval | P::FireMode | P::TurboRate => {
P::FireMode => {
view.invalidate_mode_controls_internal(initiator);
}
P::PressDurationInterval | P::TurboRate => {
view.invalidate_mode_fire_controls(initiator);
}
P::OutOfRangeBehavior => {
Expand Down

0 comments on commit 1aaa326

Please sign in to comment.