diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e0eea2..7916e9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,10 @@ - Expand/collapse changelog versions - Support local light/dark mode changes on system theme - Server time calculator +- Add "Unmodded" filter to servers +- List timestamp of last DayZ client update +- Validate mods via Mod page to pull in updates +- Support for Nasdara (Badlands) DLC ### Changed - Conform to PEP 440 versioning for beta versions @@ -74,6 +78,7 @@ - Enable LAN page Empty/Full filters on first run of app - Propagate subscribed mods to Steam client - Make j/k keys in context menus follow same wraparound logic as down arrow/up arrow +- Use SQLite DB for geolocation records ### Dropped - Battlemetrics API support @@ -92,6 +97,8 @@ - Moved dialogs out of threads - History table not being in lock-step with state file - Current keyword filter not being applied when refreshing table +- Steam Flatpak cannot run DZGUI as a non-Steam game +- Collisions between native Steam and Steam Flatpak clients ### Unreleased - Load offline mods diff --git a/dzgui/data/images/example.png b/dzgui/data/images/example.png index 2ddcf5e..94d2682 100644 Binary files a/dzgui/data/images/example.png and b/dzgui/data/images/example.png differ diff --git a/dzgui/views/trees/tree_base.py b/dzgui/views/trees/tree_base.py index b3b1178..5d7b6a2 100644 --- a/dzgui/views/trees/tree_base.py +++ b/dzgui/views/trees/tree_base.py @@ -108,14 +108,9 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore def _on_key_release(self, treeview: Gtk.TreeView, event: Gdk.EventKey) -> None: """ - Suppresses spamming on keydown - TODO: explain this better + Adds debounce to key press/release events to prevent spamming + when rapidly navigating through records """ - # TODO: multisel - # if event.keyval is Gdk.KEY_space: - # it = self.get_focused_row_iter() - # self.get_selection().select_iter(it) - # return True model = self.get_model() if model is None: diff --git a/pyproject.toml b/pyproject.toml index 3832df8..7d97ce6 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.0b29" +version = "7.0.0b30" license = "GPL-3.0-or-later" license-files = ["LICENSE"] readme = "README.md" diff --git a/scripts/scrot.py b/scripts/scrot.py new file mode 100644 index 0000000..9dbf04e --- /dev/null +++ b/scripts/scrot.py @@ -0,0 +1,23 @@ +import subprocess +from pathlib import Path + +from dzgui.app_init import build_gui + + +def get_git_root() -> Path: + proc = subprocess.run( + ["git", "rev-parse", "--show-toplevel"], capture_output=True, text=True + ) + if proc.returncode != 0: + raise OSError("Failed to parse git root") + return Path(proc.stdout.rstrip()) + + +def get_image_path() -> Path: + return get_git_root().joinpath("dzgui/data/images/example.png") + + +p = get_image_path() +app = build_gui("", False) +app.set_automation_param("screenshot_path", p) +app.run(None)