Skip to content

Commit

Permalink
fix(launchpad): not resetting when ports do not change
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzi committed Aug 29, 2024
1 parent 3c496d3 commit dded201
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions node-launchpad/src/components/popup/port_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ impl Component for PortRangePopUp {
PortRangeState::Selection => {
match key.code {
KeyCode::Enter => {
if self.port_from_old_value
== self.port_from.value().parse::<u32>().unwrap_or_default()
&& self.port_to_old_value
== self.port_to.value().parse::<u32>().unwrap_or_default()
{
debug!("Got Enter, but nothing changed, ignoring.");
return Ok(vec![Action::SwitchScene(Scene::Options)]);
}
let port_from = self.port_from.value();
let port_to = self.port_to.value();

Expand Down

0 comments on commit dded201

Please sign in to comment.