Skip to content

Commit

Permalink
fix: error theme select (closes #92)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Oct 1, 2024
1 parent 17e6b54 commit 9a63966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smassh/ui/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ async def on_mount(self) -> None:
@on(ApplyLanguage)
def apply_language(self, event: ApplyLanguage) -> None:
config_parser.set("language", event.value)
self.SCREENS["main"].query_one(LanguagePalette).refresh()
self.SCREENS["main"].query_one(Space).reset()
self.app.get_screen("main").query_one(LanguagePalette).refresh()
self.app.get_screen("main").query_one(Space).reset()

@on(ApplyTheme)
def apply_theme(self, event: ApplyTheme) -> None:
self.action_theme(event.value)
config_parser.set("theme", event.value)
self.SCREENS["main"].query_one(ThemePalette).refresh()
self.app.get_screen("main").query_one(ThemePalette).refresh()

def action_star(self) -> None:
webbrowser.open("https://github.com/kraanzu/smassh")
Expand Down

0 comments on commit 9a63966

Please sign in to comment.