Update to 0.1.7-alpha

Add custom game directory and launch log controls

CoreLib update to 0.1.9
This commit is contained in:
wei committed 2026-11-14 17:10:33 +08:00
1 parent fea979fb6f
commit ad38cf726e
24 files changed
+542 -124

No files matched your search

+11 -8
View File
@@ -523,10 +523,12 @@ class ManageProfilePage(QWidget):
)
def duplicate_profile(self, profile: ProfileSummary | None=None) -> None:
if self.selected_profile_id is None and profile is None:
return
profile_id = self.selected_profile_id
if isinstance(profile, ProfileSummary):
profile_id = profile.id
if profile_id is None:
return
new_id = self.profile_manager.duplicate_profile(profile_id)
@@ -535,10 +537,12 @@ class ManageProfilePage(QWidget):
self.load_profiles()
def delete_profile(self, profile: ProfileSummary | None=None) -> None:
if self.selected_profile_id is None and profile is None:
return
profile_id = self.selected_profile_id
if isinstance(profile, ProfileSummary):
profile_id = profile.id
if profile_id is None:
return
answer = QMessageBox.question(
self,
@@ -548,8 +552,7 @@ class ManageProfilePage(QWidget):
QMessageBox.StandardButton.No,
)
if answer == QMessageBox.StandardButton.Yes:
if self.profile_manager.remove_profile(profile_id):
self.selected_profile_id = None
self.profile_manager.remove_profile(profile_id)
def add_page(self, page_name: str, page: QScrollArea) -> Callable[[], None]:
"""Add a plugin tab and return an idempotent cleanup callback."""