Skip to content

Commit

Permalink
fix: going home from home caused a bad state
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Jul 26, 2024
1 parent b078f83 commit bdd4643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.12.4

- fix: going home from home caused a bad state

## Version 0.12.3

- feat: keep track of the selections, so that we can replace all the deep selections of an item when it's replaced
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ubo-gui"
version = "0.12.3"
version = "0.12.4"
description = "GUI sdk for Ubo Pod"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions ubo_gui/menu/transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def _switch_to(
direction: str | None = None,
) -> None:
"""Switch to a new screen."""
if screen is self.screen_manager.current_screen:
return
if duration is None:
duration = 0 if transition is self._no_transition else 0.3
with self._transition_progress_lock:
Expand Down

0 comments on commit bdd4643

Please sign in to comment.