Skip to content

Commit

Permalink
Merge pull request #93 from kraanzu/develop
Browse files Browse the repository at this point in the history
Fix BUGSS
  • Loading branch information
kraanzu authored Oct 1, 2024
2 parents b070664 + e4fcbf0 commit d4526a6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*map

# nix
result
/result

# extras
backport/
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
flake-utils.lib.eachDefaultSystem (
system: let
name = "smassh";
version = "3.1.5";
version = "3.1.6";

pkgs = import nixpkgs {inherit system;};
python3 = pkgs.python312Packages;
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "smassh"
version = "3.1.5"
version = "3.1.6"
description = "A TUI based typing application"
maintainers = ["kraanzu <kraanzu@gmail.com>"]
license = "GPL v3"
Expand Down Expand Up @@ -33,4 +33,4 @@ smassh = 'smassh.__main__:main'

[tool.ruff]
exclude = ["venv"]
ignore = ["F405"]
lint.ignore = ["F405"]
2 changes: 1 addition & 1 deletion smassh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import click

PKG_VERSION = "3.1.4"
PKG_VERSION = "3.1.6"


@click.group(
Expand Down
2 changes: 1 addition & 1 deletion smassh/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import click

PKG_VERSION = "3.1.4"
PKG_VERSION = "3.1.6"


@click.group(
Expand Down
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
2 changes: 1 addition & 1 deletion smassh/ui/widgets/palette/palette_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def valid_option(option_text: str) -> bool:
valid_options = filter(valid_option, self.get_options())
self.add_options(valid_options)

async def on_mount(self, _) -> None:
def on_mount(self) -> None:
self.apply_filter("")
options = sorted(self._get_options())
index = options.index(self.get_current())
Expand Down

0 comments on commit d4526a6

Please sign in to comment.