mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
Mod hashes are taken from the directory names, which cannot be the same at the filesystem level. Custom mod hashes are also unique from local mods because they are given a different namespace.
This commit is contained in:
1 parent
77df66979a
commit
ad85bb7343
3 files changed
+5
-19
No files matched your search
@@ -54,16 +54,7 @@ class OfflineManager:
|
||||
store = ModelFactory().make_mod_store()
|
||||
store.extend(mods)
|
||||
|
||||
has_duplicates = False
|
||||
seen = set()
|
||||
for row in store:
|
||||
mod_id = row[1]
|
||||
if mod_id in seen:
|
||||
row[-1]=True
|
||||
has_duplicates = True
|
||||
seen.add(mod_id)
|
||||
|
||||
func = StoredFunc(lambda: self.emitter.emit("custom_mods_loaded", store, folder, has_duplicates))
|
||||
func = StoredFunc(lambda: self.emitter.emit("custom_mods_loaded", store, folder))
|
||||
self.thread_man.set_cleanup_func(func)
|
||||
|
||||
def setup(
|
||||
|
||||
Reference in new issue
Block a user