mirror of
https://github.com/aclist/dztui.git
synced 2026-11-23 18:09:30 +01:00
Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aba90e635b | ||
|
|
d35b797157 | ||
|
|
95589a191f | ||
|
|
9569c56f1f | ||
|
|
73d819a1bf | ||
|
|
c25240f6f6 | ||
|
|
167e48d5ae | ||
|
|
9deaf9cec4 | ||
|
|
1a4bc40cf6 | ||
|
|
4487833d99 | ||
|
|
e528580350 | ||
|
|
e5d94a8c52 | ||
|
|
29c2765732 | ||
|
|
0d946de881 | ||
|
|
abf68b0962 | ||
|
|
47168cd0bf | ||
|
|
db2ddca9a5 | ||
|
|
5c81f228b0 |
No files matched your search
+58
-72
@@ -2,112 +2,98 @@
|
||||
|
||||
## [7.0.0] Unreleased
|
||||
### Added
|
||||
- Setup wizard
|
||||
- Uninstall wizard
|
||||
- Descriptive details panel to certain error dialogs
|
||||
- Changelog text wrapping and formatting
|
||||
- Changelog ships with source
|
||||
- Documentation ships with source
|
||||
- Decouple UI components into modules
|
||||
- Choose from kilometer or miles distance display
|
||||
- More granular haversine calculation
|
||||
- Parse XDG data dirs with fallbacks
|
||||
- Turnkey setup wizard
|
||||
- Turnkey uninstall wizard
|
||||
- Support for Nasdara (Badlands) DLC
|
||||
- Dedicated mods page
|
||||
- Dedicated thanks page
|
||||
- Rearrange menus/breadcrumbs
|
||||
- Automatically generate Steam shortcuts and cover art
|
||||
- Load offline mods/missions (primarily intended for use with specific mods like DayZ Editor)
|
||||
- Descriptive details panel to certain error dialogs
|
||||
- Choose from kilometer or miles distance display
|
||||
- More granular server distance calculation
|
||||
- Open filepicker when generating system log
|
||||
- Developers page (and -d flag)
|
||||
- Redact API key in log table
|
||||
- Integrate add/connect widgets into main menu
|
||||
- Integrated server tabs in a single pane
|
||||
- Favorite/connect/LAN panels integrated with server views
|
||||
- Abort on first LAN server found
|
||||
- Colorized IP/ID validation fields
|
||||
- Choice to abort on first LAN server found
|
||||
- Colorized IP/ID validation in text entry fields
|
||||
- Copy favorite server IP to clipboard
|
||||
- Set favorite server from tables
|
||||
- Detailed/copyable trace in critical error dialogs
|
||||
- Visual icons
|
||||
- Visual icons to most buttons
|
||||
- Unset favorite server button
|
||||
- Integrated server notebook
|
||||
- Propagate width changes to all tables
|
||||
- Remember tree position in menus
|
||||
- Propagate column width changes to all tables
|
||||
- Remember row position in menus
|
||||
- Show hidden server count after filtering
|
||||
- Atomic map filters per server context
|
||||
- Use concurrency when checking stale mods (performance uplift)
|
||||
- Copy version by clicking label
|
||||
- Add server name to server mod dialogs
|
||||
- Lazy load ping cell data func
|
||||
- Refresh servers button
|
||||
- Early load alerts button
|
||||
- Preconnect dialog
|
||||
- Preconnect warnings/failsafes like filesize
|
||||
- Concurrency when checking stale mods (performance uplift)
|
||||
- Copy DZGUI version by clicking corner label
|
||||
- Server name to server mod dialogs
|
||||
- Application preboot progress dialog
|
||||
- Lazy load server ping values on demand
|
||||
- Dedicated refresh servers button
|
||||
- Server preconnect area with warnings
|
||||
- Choose to jump into game splash screen instead of server
|
||||
- Save filters per server context between sessions
|
||||
- Preboot progress dialog
|
||||
- Choose to jump into splash screen instead of server
|
||||
- Collapsible connection panel
|
||||
- Play offline (load mods directly)
|
||||
- Generate Steam shortcuts and cover art
|
||||
- Warn user if background downloads are disabled
|
||||
- Dynamic copy button
|
||||
- Update map count (-u flag)
|
||||
- Filter button tooltips
|
||||
- Expand/collapse changelog versions
|
||||
- Support local light/dark mode changes on system theme
|
||||
- Server time calculator
|
||||
- Add "Unmodded" filter to servers
|
||||
- Warn user if background downloads are disabled on Steam
|
||||
- Prompt to update map count during setup (-u flag)
|
||||
- Tooltips to filter button
|
||||
- Changelog node collapse/expand capability
|
||||
- Support for local light/dark mode changes on system theme
|
||||
- Server time calculator in server details dialogs
|
||||
- "Unmodded" filter to servers filters panel
|
||||
- List timestamp of last DayZ client update
|
||||
- Validate mods via Mod page to pull in updates
|
||||
- Support for Nasdara (Badlands) DLC
|
||||
- Load offline mods
|
||||
- Support Snap package version of Steam
|
||||
- Export debug log to a named file
|
||||
|
||||
### Changed
|
||||
- Conform to PEP 440 versioning for beta versions
|
||||
- Moved to prebuilt package and release structure
|
||||
- Conform to PEP 440 version numbering
|
||||
- Changelog file bundled inside application
|
||||
- Enforce fullscreen mode on Steam Deck
|
||||
- Reduce padding on keys button
|
||||
- Boldface breadcrumbs
|
||||
- Reduce padding on some buttons
|
||||
- Made navigation breadcrumbs boldface
|
||||
- Changed some dialog error messages from popups to popovers
|
||||
- Changed how filter buttons are packed in sidebar
|
||||
- Bold labels inside frames
|
||||
- Sidebar buttons do not steal focus
|
||||
- Copy IP copies IP:queryport only instead of IP:gameport:queryport, mimics syntax needed by add by ip method
|
||||
- Load new model into view without flushing
|
||||
- Cull servers with abnormal queue values (integer overflow: 2147483647)
|
||||
- Packaging structure
|
||||
- Packed filter checkboxes in a symmetrically flowed box
|
||||
- Added boldface labels to frames
|
||||
- Prevent sidebar buttons from stealing focus when clicked
|
||||
- Copy IP method copies "ip:queryport" only instead of "ip:gameport:queryport
|
||||
- Dynamically load new server model into view without flushing
|
||||
- Cull servers with abnormal queue values (e.g., integer overflow: 2147483647)
|
||||
- Suppress log messages from imported modules
|
||||
- Embed Workshop link in Options menu
|
||||
- Disable overlay scrollbars on server tables
|
||||
- Reduce size of geolocation DB on disk (~100MB)
|
||||
- Enable LAN page Empty/Full filters on first run of app
|
||||
- Propagate subscribed mods to Steam client
|
||||
- Remove occlusion on scrollbars positioned next to tables
|
||||
- Use SQLite for geolocation records
|
||||
- Initialize LAN page with inclusive default server filters
|
||||
- Redact API keys in debug log table
|
||||
- Propagate subscribed mod selections 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
|
||||
- Changed "force update" mod logic to "validate mod" for better integration with Steam client
|
||||
- More robust configuration and state file directory parsing
|
||||
|
||||
### Dropped
|
||||
- Battlemetrics API support
|
||||
- Unused metadata from system log files
|
||||
- Branch switching
|
||||
- Manual mod install mode (describe rationale)
|
||||
- Force update mods
|
||||
- Branch switching logic
|
||||
- Manual mod install mode
|
||||
- Remnants of legacy Bash script logic
|
||||
|
||||
### Fixed
|
||||
- Longstanding issue with left clicks not registering as tree selection changes after spamming keyboard input
|
||||
- In-game time field missing certain ranges of time at night
|
||||
- Wrap long entries in changelog
|
||||
- Long text entries not being wrapped in changelog
|
||||
- Certain server descriptions with special characters not rendering correctly
|
||||
- Center server title text on server dialogs
|
||||
- Rare segfaults when changing maps (threading)
|
||||
- Moved dialogs out of threads
|
||||
- History table not being in lock-step with state file
|
||||
- Rare segmentation faults when changing maps
|
||||
- Rare segmentation faults when spawning dialogs
|
||||
- History table not being in lock-step with actual history file
|
||||
- History records only being cosmetically removed
|
||||
- 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
|
||||
- Sticky toggle signal on radio buttons when reloading Options
|
||||
- Signals becoming stacked each time Options page was reloaded
|
||||
- Handle missing mods directory if not installed previously
|
||||
- Filters not blocked by keyboard keys when filters are disabled
|
||||
|
||||
### Developer-facing
|
||||
- Options -> Dev page
|
||||
- Raw debug command in preconnect menu
|
||||
- Keyboard input not being blocked when filter area is grayed out
|
||||
|
||||
## [6.0.5] 2026-05-17
|
||||
### Changed
|
||||
|
||||
@@ -29,3 +29,8 @@ sphinx-build -M html source build -a
|
||||
2. Set up the build target: `rustup target add x86_64-unknown-linux-musl`
|
||||
3. Run `python3 scripts/release.py`
|
||||
4. Generate a release and tag against the resulting tarfile generated in `dist`
|
||||
|
||||
### Running tests
|
||||
|
||||
Some tests are environment specific and require real configuration files.
|
||||
For a generally environment-agnostic test suite, invoke `pytest -m "not realconfig, not flatpak"`
|
||||
+1
-1
@@ -119,6 +119,6 @@ The milestone of 500 tickets/PRs being closed was reached.
|
||||
- 2023: 322
|
||||
- 2024: 347
|
||||
- 2025: 426
|
||||
- 2026: 1300
|
||||
- 2026: 1521
|
||||
|
||||
DZGUI 7 is scheduled to release as a stable version within the year.
|
||||
@@ -1,7 +1,7 @@
|
||||
Installation
|
||||
==================
|
||||
|
||||
.. note::
|
||||
.. attention::
|
||||
Version 6 of DZGUI 6 has been fully replaced with DZGUI 7.
|
||||
Users on existing DZGUI 6 installations should migrate to the DZGUI 7 build.
|
||||
|
||||
|
||||
@@ -22,8 +22,12 @@ From Steam
|
||||
--------------
|
||||
DZGUI will also ask you if you want to add a "non-Steam game" shortcut to Steam.
|
||||
This shortcut will launch DZGUI directly and comes with integrated grid and cover artwork.
|
||||
|
||||
You must restart Steam for this shortcut to take effect in your library.
|
||||
|
||||
.. attention::
|
||||
Steam shortcut integration is not supported on the Snap package version of steam
|
||||
due to its containerized nature. Snap users should run DZGUI directly from the system.
|
||||
|
||||
|
||||
.. note::
|
||||
You can also pass DZGUI launch parameter's to the Steam shortcut via Steam's right-click menu. See :doc:`flags`.
|
||||
@@ -1,43 +0,0 @@
|
||||
After satisfying the dependencies above, create a virtual environment (venv) and install PyGObject:
|
||||
|
||||
If you have ``uv`` as your Python version manager, invoke the following:
|
||||
|
||||
.. code:: console
|
||||
|
||||
uv venv --python 3.13 $HOME/.virtualenvs/dzgui
|
||||
source $HOME/.virtualenvs/dzgui/bin/activate
|
||||
uv pip install PyGObject
|
||||
|
||||
If you installed the ``python3.13`` package directly instead of ``uv``, use the below:
|
||||
|
||||
.. code:: console
|
||||
|
||||
python3.13 -m venv $HOME/.virtualenvs/dzgui
|
||||
source $HOME/.virtualenvs/dzgui/bin/activate
|
||||
pip install PyGObject
|
||||
|
||||
You can now proceed to the :ref:`Installscript`.
|
||||
After installation, refer to the additional remarks below.
|
||||
|
||||
.. important::
|
||||
Since PyGObject is localized to a venv, it is advisable to create a wrapper script to ensure
|
||||
the venv is activated on subsequent invocations of DZGUI.
|
||||
|
||||
.. code:: console
|
||||
|
||||
#!/usr/bin/env bash
|
||||
source $HOME/.virtualenvs/dzgui/bin/activate
|
||||
<insert your path to dzgui.sh>
|
||||
|
||||
Make sure to update the placeholder path on the last line. For example, if you ran the
|
||||
installscript from your home directory, the wrapper script would look like:
|
||||
|
||||
.. code:: console
|
||||
|
||||
#!/usr/bin/env bash
|
||||
source $HOME/.virtualenvs/dzgui/bin/activate
|
||||
$HOME/dzgui.sh
|
||||
|
||||
Save this wrapper script in a location of your choice, e.g., ``mywrapper.sh`` and set the
|
||||
executable bit: ``chmod +x mywrapper.sh`` This script will be your entrypoint for
|
||||
future invocations of DZGUI, so you should launch it, not ``dzgui.sh``
|
||||
@@ -2,7 +2,7 @@ import binascii
|
||||
import ctypes
|
||||
import logging
|
||||
import shutil
|
||||
import vdf # type: ignore
|
||||
import vdf # type: ignore[import-untyped]
|
||||
|
||||
from dataclasses import dataclass
|
||||
from importlib import resources
|
||||
@@ -114,6 +114,7 @@ class Shortcuts:
|
||||
make_parents(dest)
|
||||
b = images.joinpath(img).with_suffix(".png").read_bytes()
|
||||
dest.write_bytes(b)
|
||||
logger.debug(f"Wrote grid image to '{dest}'")
|
||||
|
||||
# NOTE: legacy Big Picture header
|
||||
b = images.joinpath("_hero.png").read_bytes()
|
||||
@@ -127,6 +128,7 @@ class Shortcuts:
|
||||
except Exception:
|
||||
n = 0
|
||||
self.shortcuts["shortcuts"][str(n)] = entry
|
||||
logger.debug(f"Added shortcut at index {n}")
|
||||
|
||||
@classmethod
|
||||
def _create_entry(cls, meta: ShortcutMetadata) -> dict[str, Any]:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import psutil
|
||||
import re
|
||||
import requests
|
||||
import subprocess
|
||||
import vdf # type: ignore
|
||||
import vdf # type: ignore[import-untyped]
|
||||
|
||||
from pathlib import Path
|
||||
from requests.exceptions import HTTPError
|
||||
|
||||
+60
-71
@@ -2,109 +2,98 @@
|
||||
|
||||
## [7.0.0] Unreleased
|
||||
### Added
|
||||
- Setup wizard
|
||||
- Uninstall wizard
|
||||
- Descriptive details panel to certain error dialogs
|
||||
- Changelog text wrapping and formatting
|
||||
- Changelog ships with source
|
||||
- Documentation ships with source
|
||||
- Decouple UI components into modules
|
||||
- Choose from kilometer or miles distance display
|
||||
- More granular haversine calculation
|
||||
- Parse XDG data dirs with fallbacks
|
||||
- Turnkey setup wizard
|
||||
- Turnkey uninstall wizard
|
||||
- Support for Nasdara (Badlands) DLC
|
||||
- Dedicated mods page
|
||||
- Dedicated thanks page
|
||||
- Rearrange menus/breadcrumbs
|
||||
- Automatically generate Steam shortcuts and cover art
|
||||
- Load offline mods/missions (primarily intended for use with specific mods like DayZ Editor)
|
||||
- Descriptive details panel to certain error dialogs
|
||||
- Choose from kilometer or miles distance display
|
||||
- More granular server distance calculation
|
||||
- Open filepicker when generating system log
|
||||
- Developers page (and -d flag)
|
||||
- Redact API key in log table
|
||||
- Integrate add/connect widgets into main menu
|
||||
- Integrated server tabs in a single pane
|
||||
- Favorite/connect/LAN panels integrated with server views
|
||||
- Abort on first LAN server found
|
||||
- Colorized IP/ID validation fields
|
||||
- Choice to abort on first LAN server found
|
||||
- Colorized IP/ID validation in text entry fields
|
||||
- Copy favorite server IP to clipboard
|
||||
- Set favorite server from tables
|
||||
- Detailed/copyable trace in critical error dialogs
|
||||
- Visual icons
|
||||
- Visual icons to most buttons
|
||||
- Unset favorite server button
|
||||
- Integrated server notebook
|
||||
- Propagate width changes to all tables
|
||||
- Remember tree position in menus
|
||||
- Propagate column width changes to all tables
|
||||
- Remember row position in menus
|
||||
- Show hidden server count after filtering
|
||||
- Atomic map filters per server context
|
||||
- Use concurrency when checking stale mods (performance uplift)
|
||||
- Copy version by clicking label
|
||||
- Add server name to server mod dialogs
|
||||
- Lazy load ping cell data func
|
||||
- Refresh servers button
|
||||
- Early load alerts button
|
||||
- Preconnect dialog
|
||||
- Preconnect warnings/failsafes like filesize
|
||||
- Concurrency when checking stale mods (performance uplift)
|
||||
- Copy DZGUI version by clicking corner label
|
||||
- Server name to server mod dialogs
|
||||
- Application preboot progress dialog
|
||||
- Lazy load server ping values on demand
|
||||
- Dedicated refresh servers button
|
||||
- Server preconnect area with warnings
|
||||
- Choose to jump into game splash screen instead of server
|
||||
- Save filters per server context between sessions
|
||||
- Preboot progress dialog
|
||||
- Choose to jump into splash screen instead of server
|
||||
- Collapsible connection panel
|
||||
- Play offline (load mods directly)
|
||||
- Generate Steam shortcuts and cover art
|
||||
- Warn user if background downloads are disabled
|
||||
- Dynamic copy button
|
||||
- Update map count (-u flag)
|
||||
- Filter button tooltips
|
||||
- Expand/collapse changelog versions
|
||||
- Support local light/dark mode changes on system theme
|
||||
- Server time calculator
|
||||
- Add "Unmodded" filter to servers
|
||||
- Warn user if background downloads are disabled on Steam
|
||||
- Prompt to update map count during setup (-u flag)
|
||||
- Tooltips to filter button
|
||||
- Changelog node collapse/expand capability
|
||||
- Support for local light/dark mode changes on system theme
|
||||
- Server time calculator in server details dialogs
|
||||
- "Unmodded" filter to servers filters panel
|
||||
- List timestamp of last DayZ client update
|
||||
- Validate mods via Mod page to pull in updates
|
||||
- Support for Nasdara (Badlands) DLC
|
||||
- Load offline mods
|
||||
- Support Snap package version of Steam
|
||||
- Export debug log to a named file
|
||||
|
||||
### Changed
|
||||
- Conform to PEP 440 versioning for beta versions
|
||||
- Moved to prebuilt package and release structure
|
||||
- Conform to PEP 440 version numbering
|
||||
- Changelog file bundled inside application
|
||||
- Enforce fullscreen mode on Steam Deck
|
||||
- Reduce padding on keys button
|
||||
- Boldface breadcrumbs
|
||||
- Reduce padding on some buttons
|
||||
- Made navigation breadcrumbs boldface
|
||||
- Changed some dialog error messages from popups to popovers
|
||||
- Changed how filter buttons are packed in sidebar
|
||||
- Bold labels inside frames
|
||||
- Sidebar buttons do not steal focus
|
||||
- Copy IP copies IP:queryport only instead of IP:gameport:queryport, mimics syntax needed by add by ip method
|
||||
- Load new model into view without flushing
|
||||
- Cull servers with abnormal queue values (integer overflow: 2147483647)
|
||||
- Packaging structure
|
||||
- Packed filter checkboxes in a symmetrically flowed box
|
||||
- Added boldface labels to frames
|
||||
- Prevent sidebar buttons from stealing focus when clicked
|
||||
- Copy IP method copies "ip:queryport" only instead of "ip:gameport:queryport
|
||||
- Dynamically load new server model into view without flushing
|
||||
- Cull servers with abnormal queue values (e.g., integer overflow: 2147483647)
|
||||
- Suppress log messages from imported modules
|
||||
- Embed Workshop link in Options menu
|
||||
- Disable overlay scrollbars on server tables
|
||||
- Reduce size of geolocation DB on disk (~100MB)
|
||||
- Enable LAN page Empty/Full filters on first run of app
|
||||
- Propagate subscribed mods to Steam client
|
||||
- Remove occlusion on scrollbars positioned next to tables
|
||||
- Use SQLite for geolocation records
|
||||
- Initialize LAN page with inclusive default server filters
|
||||
- Redact API keys in debug log table
|
||||
- Propagate subscribed mod selections 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
|
||||
- Changed "force update" mod logic to "validate mod" for better integration with Steam client
|
||||
- More robust configuration and state file directory parsing
|
||||
|
||||
### Dropped
|
||||
- Battlemetrics API support
|
||||
- Unused metadata from system log files
|
||||
- Branch switching
|
||||
- Manual mod install mode (describe rationale)
|
||||
- Force update mods
|
||||
- Branch switching logic
|
||||
- Manual mod install mode
|
||||
- Remnants of legacy Bash script logic
|
||||
|
||||
### Fixed
|
||||
- Longstanding issue with left clicks not registering as tree selection changes after spamming keyboard input
|
||||
- In-game time field missing certain ranges of time at night
|
||||
- Wrap long entries in changelog
|
||||
- Long text entries not being wrapped in changelog
|
||||
- Certain server descriptions with special characters not rendering correctly
|
||||
- Center server title text on server dialogs
|
||||
- Rare segfaults when changing maps (threading)
|
||||
- Moved dialogs out of threads
|
||||
- History table not being in lock-step with state file
|
||||
- Rare segmentation faults when changing maps
|
||||
- Rare segmentation faults when spawning dialogs
|
||||
- History table not being in lock-step with actual history file
|
||||
- History records only being cosmetically removed
|
||||
- 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
|
||||
- Sticky toggle signal on radio buttons when reloading Options
|
||||
|
||||
### Developer-facing
|
||||
- Options -> Dev page
|
||||
- Raw debug command in preconnect menu
|
||||
- Signals becoming stacked each time Options page was reloaded
|
||||
- Handle missing mods directory if not installed previously
|
||||
- Keyboard input not being blocked when filter area is grayed out
|
||||
|
||||
## [6.0.5] 2026-05-17
|
||||
### Changed
|
||||
|
||||
@@ -66,7 +66,7 @@ def copy_state_files(state_path: Path) -> None:
|
||||
".month",
|
||||
]
|
||||
if state_path == legacy:
|
||||
# TODO: log this
|
||||
logger.debug(f"Legacy state path '{legacy}' is identical to current")
|
||||
return
|
||||
for file in legacy.iterdir():
|
||||
if file.name in to_copy:
|
||||
|
||||
@@ -13,7 +13,6 @@ from dzgui.api.probe import test_steam_api
|
||||
from dzgui.const.enum import Preferences
|
||||
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
|
||||
from dzgui.views.dialogs.generic import ExceptionDialog
|
||||
from dzgui.strings import dialogs
|
||||
from dzgui.util._json import read_json, write_json
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
||||
@@ -147,7 +147,7 @@ class ConnectionManager:
|
||||
self.missing_mods = missing_mods
|
||||
self.remote_mod_ids = [mod[1] for mod in remote_mods]
|
||||
except Exception as e:
|
||||
logger.warning(e)
|
||||
logger.critical(e)
|
||||
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
|
||||
return
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class UpdateManager:
|
||||
except Exception as e:
|
||||
func = StoredFunc(self._on_update_failure, str(e))
|
||||
self.thread_man.set_cleanup_func(func, destroy_first=True)
|
||||
logger.warning(e)
|
||||
logger.critical(e)
|
||||
|
||||
def _on_update_success(self) -> None:
|
||||
msg = dialogs.update_success
|
||||
|
||||
@@ -205,7 +205,7 @@ class ServerModelManager:
|
||||
res = Servers.query_by_ip(addr)
|
||||
self._parse_single_record(res)
|
||||
except Exception as e:
|
||||
logger.warning(e)
|
||||
logger.critical(e)
|
||||
self.thread_man.set_cleanup_func(
|
||||
StoredFunc(self._cleanup_on_failure), destroy_first=True
|
||||
)
|
||||
@@ -219,7 +219,7 @@ class ServerModelManager:
|
||||
res = Servers.query_by_record(record)
|
||||
self._parse_single_record(res)
|
||||
except Exception as e:
|
||||
logger.warning(e)
|
||||
logger.critical(e)
|
||||
self.thread_man.set_cleanup_func(
|
||||
StoredFunc(self._cleanup_on_failure), destroy_first=True
|
||||
)
|
||||
@@ -232,7 +232,7 @@ class ServerModelManager:
|
||||
res = Servers.query_by_record(record)
|
||||
self._parse_single_record(res, delete=True)
|
||||
except Exception as e:
|
||||
logger.warning(e)
|
||||
logger.critical(e)
|
||||
self.thread_man.set_cleanup_func(
|
||||
StoredFunc(self._cleanup_on_failure), destroy_first=True
|
||||
)
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ description = "DayZ server browser and mod manager for Linux"
|
||||
authors = [
|
||||
{name = "aclist"}
|
||||
]
|
||||
version = "7.0.0b30"
|
||||
version = "7.0.0b31"
|
||||
license = "GPL-3.0-or-later"
|
||||
license-files = ["LICENSE"]
|
||||
readme = "README.md"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
import vdf
|
||||
import vdf # type: ignore[import-untyped]
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
@@ -7,11 +7,13 @@ from dzgui.api.mods import get_local_mod_ids
|
||||
from dzgui.util.dirs import make_parents
|
||||
from tests.fixtures import fixture_path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def libraryfolders() -> Path:
|
||||
return fixture_path("api/steamapps/libraryfolders.vdf")
|
||||
|
||||
def test_missing_mod_dir(tmp_path, libraryfolders: Path) -> None:
|
||||
|
||||
def test_missing_mod_dir(tmp_path: Path, libraryfolders: Path) -> None:
|
||||
"""
|
||||
Updates fixture file key with tmp path value serializes to file,
|
||||
then tests for missing mod directory returning an empty list
|
||||
|
||||
Reference in new issue
Block a user