From 4bac804fd78389d10d97122f446f7dd296eec82c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:06:41 +0900 Subject: [PATCH 1/4] fix: duplicate warnings (#480) --- dzgui/views/base.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dzgui/views/base.py b/dzgui/views/base.py index 9a728bc..2e2de27 100644 --- a/dzgui/views/base.py +++ b/dzgui/views/base.py @@ -1,6 +1,5 @@ import logging import signal -import warnings from typing import TYPE_CHECKING, Literal, Self @@ -345,7 +344,5 @@ try: icons = theme.list_icons(None) if STEAM_ICON not in icons: logger.warn(strings.steam_icon_missing) - warnings.warn(strings.steam_icon_missing, stacklevel=2) except Exception as e: logger.warning(e) - warnings.warn(strings.gtk_theme_missing, stacklevel=2) From 1555ba2d644cdc5ffc2b5ca11c485f34f7df73a3 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:07:00 +0900 Subject: [PATCH 2/4] chore: drop no longer relevant filter --- dzgui/views/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dzgui/views/base.py b/dzgui/views/base.py index 2e2de27..9febc50 100644 --- a/dzgui/views/base.py +++ b/dzgui/views/base.py @@ -46,10 +46,6 @@ if TYPE_CHECKING: logger = logging.getLogger(APP_NAME) -# TODO: drop -# https://bugzilla.gnome.org/show_bug.cgi?id=708676 -warnings.filterwarnings("ignore", ".*g_value_get_int", Warning) - class OuterWindow(Gtk.ApplicationWindow): def __init__(self, app: Gtk.Application) -> None: From 7ae34747e907756dd293eb7e575d7a2d21a94214 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:07:22 +0900 Subject: [PATCH 3/4] fix: add missing dummy method to test --- tests/test_server_time.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_server_time.py b/tests/test_server_time.py index a78d453..7bb7397 100644 --- a/tests/test_server_time.py +++ b/tests/test_server_time.py @@ -14,7 +14,11 @@ from dzgui.views.dialogs.calc import ( class DummyEmitter: - pass + def __init__(self) -> None: + pass + + def connect(self, _, __) -> None: + pass @pytest.fixture(params=[("05:00", 10.0), ("15:30", 5.0)]) From 191776ce74cdef902f75c7ac4bb1c880ee5a1086 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:11:29 +0900 Subject: [PATCH 4/4] fix: use correct logger method --- dzgui/views/base.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui/views/base.py b/dzgui/views/base.py index 9febc50..dda1ac8 100644 --- a/dzgui/views/base.py +++ b/dzgui/views/base.py @@ -339,6 +339,6 @@ try: theme = Gtk.IconTheme.get_default() icons = theme.list_icons(None) if STEAM_ICON not in icons: - logger.warn(strings.steam_icon_missing) + logger.warning(strings.steam_icon_missing) except Exception as e: logger.warning(e) diff --git a/pyproject.toml b/pyproject.toml index 45de47b..bf60d09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ description = "DayZ server browser and mod manager for Linux" authors = [ {name = "aclist"} ] -version = "7.0.0b25" +version = "7.0.0b26" license = "GPL-3.0-or-later" license-files = ["LICENSE"] readme = "README.md"