mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
fix: rebuild symlinks when launching
This commit is contained in:
1 parent
cab10efc96
commit
e5934848c7
1 file changed
+3
-1
@@ -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, symlink_mission
|
from dzgui.util.symlink import create_custom_symlinks, rebuild_symlinks, symlink_mission
|
||||||
from dzgui.views.dialogs.filepicker import FolderPicker
|
from dzgui.views.dialogs.filepicker import FolderPicker
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@@ -96,6 +96,8 @@ class OfflineManager:
|
|||||||
|
|
||||||
if len(local_mods) > 0:
|
if len(local_mods) > 0:
|
||||||
combined_mods.extend(local_mods)
|
combined_mods.extend(local_mods)
|
||||||
|
config = self.controller.get_prefs().paths.config
|
||||||
|
rebuild_symlinks(config)
|
||||||
|
|
||||||
if len(custom_mods) > 0:
|
if len(custom_mods) > 0:
|
||||||
new_symlinks = create_custom_symlinks(
|
new_symlinks = create_custom_symlinks(
|
||||||
|
|||||||
Reference in new issue
Block a user