chore: clear typehinting errors

This commit is contained in:
aclist 2026-06-14 21:56:49 +09:00
parent c818945a28
commit 38bfef3836
3 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ from dzgui.init.proc import is_dayz_running
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.model.model_factory import ModelFactory
from dzgui.strings import dialogs
from dzgui.util.symlink import create_custom_symlinks, clone_symlinks, symlink_mission
from dzgui.util.symlink import create_custom_symlinks, symlink_mission
from dzgui.views.dialogs.filepicker import FolderPicker
if TYPE_CHECKING:

View File

@ -55,14 +55,13 @@ def create_custom_symlinks(
return links
def symlink_mission(steam_path: Path, target: str) -> None:
def symlink_mission(steam_path: Path, target: str) -> str:
dayz_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
for file in dayz_path.iterdir():
expunge_link(file)
path = Path(target)
stem = path.name
parent = path.parent
suffix = _hash(str(parent), use_custom=True)
source = dayz_path.joinpath(DAYZ_COMMUNITY_ROOT)
try:
source.symlink_to(parent)

View File

@ -202,7 +202,7 @@ class ModFrame(HeadingFrame):
self.no_mods = HBox(spacing=10)
no_mods_icon = Icon(WARNING, margin_start=10)
no_mods_label = Gtk.Label(offline.no_local_mods, halign=Gtk.Align.START)
no_mods_label = Gtk.Label(label=offline.no_local_mods, halign=Gtk.Align.START)
self.no_mods.extend([no_mods_icon, no_mods_label])
self.vbox.pack_end(self.no_mods, expand=True, fill=True, padding=3)