mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
c818945a28
commit
38bfef3836
3 files changed
+3
-4
No files matched your search
@@ -12,7 +12,7 @@ from dzgui.init.proc import is_dayz_running
|
|||||||
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
|
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
|
||||||
from dzgui.model.model_factory import ModelFactory
|
from dzgui.model.model_factory import ModelFactory
|
||||||
from dzgui.strings import dialogs
|
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
|
from dzgui.views.dialogs.filepicker import FolderPicker
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|||||||
@@ -55,14 +55,13 @@ def create_custom_symlinks(
|
|||||||
return links
|
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)
|
dayz_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
|
||||||
for file in dayz_path.iterdir():
|
for file in dayz_path.iterdir():
|
||||||
expunge_link(file)
|
expunge_link(file)
|
||||||
path = Path(target)
|
path = Path(target)
|
||||||
stem = path.name
|
stem = path.name
|
||||||
parent = path.parent
|
parent = path.parent
|
||||||
suffix = _hash(str(parent), use_custom=True)
|
|
||||||
source = dayz_path.joinpath(DAYZ_COMMUNITY_ROOT)
|
source = dayz_path.joinpath(DAYZ_COMMUNITY_ROOT)
|
||||||
try:
|
try:
|
||||||
source.symlink_to(parent)
|
source.symlink_to(parent)
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ class ModFrame(HeadingFrame):
|
|||||||
|
|
||||||
self.no_mods = HBox(spacing=10)
|
self.no_mods = HBox(spacing=10)
|
||||||
no_mods_icon = Icon(WARNING, margin_start=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.no_mods.extend([no_mods_icon, no_mods_label])
|
||||||
|
|
||||||
self.vbox.pack_end(self.no_mods, expand=True, fill=True, padding=3)
|
self.vbox.pack_end(self.no_mods, expand=True, fill=True, padding=3)
|
||||||
|
|||||||
Reference in new issue
Block a user