Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BUGSS #93

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading