Skip to content

Commit

Permalink
merging issue
Browse files Browse the repository at this point in the history
for some unholy reason, random things keep disappearing from my files whenever i merge... there's zero explanation that makes sense.
  • Loading branch information
th3w1zard1 committed Mar 8, 2024
1 parent 5308497 commit 6858227
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Tools/HolocronToolset/src/toolset/gui/windows/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,22 @@ def refreshOverrideList(self, *, reload=True):
sections.append(section)
self.ui.overrideWidget.setSections(sections)

def refreshSavesList(self, *, reload=True):
"""Refreshes the list of override directories in the overrideFolderCombo combobox."""
if self.active is None:
print("no installation is currently loaded, cannot refresh saves list")
return
if reload:
self.active.load_saves()

sections: list[QStandardItem] = []
for save_path in self.active._saves:
save_path_str = str(save_path)
section = QStandardItem(save_path_str)
section.setData(save_path_str, QtCore.Qt.UserRole)
sections.append(section)
self.ui.savesWidget.setSections(sections)

def refreshTexturePackList(self, *, reload=True):
if self.active is None:
print("no installation is currently loaded, cannot refresh texturepack list")
Expand Down

0 comments on commit 6858227

Please sign in to comment.