Add macOS about menu and test plugin support(early state).

This commit is contained in:
wei committed 2026-10-25 11:39:44 +08:00
1 parent 77c4be7dcf
commit deb06f0190
10 files changed
+85 -9

No files matched your search

+3 -2
View File
@@ -12,10 +12,9 @@ from PySide6.QtWidgets import (
from manager.profile import ProfileDetail, ProfileManager, ProfileSummary, UpdateProfileRequest
from manager.game import AvailableVersion
from pages.add_modded_version import AddModdedVersionDialog
from core_lib.qt.item_button import ItemButton
class ManageProfileItem(ItemButton):
class ManageProfileItem(QPushButton):
selected = Signal(object)
def __init__(self, app, profile: ProfileSummary,
@@ -26,6 +25,8 @@ class ManageProfileItem(ItemButton):
self.app = app
self.profile = profile
self.setObjectName("manageProfileItem")
# Custom row backgrounds cover the full widget, including native macOS margins.
self.setAttribute(Qt.WidgetAttribute.WA_LayoutUsesWidgetRect)
self.setCheckable(True)
self.setCursor(Qt.CursorShape.PointingHandCursor)
self.setMinimumHeight(64)