The open account page button will display current account's avatar.

This commit is contained in:
wei
2026-08-03 00:30:02 +08:00
parent 6ab807356d
commit e88a7cbde1
3 changed files with 47 additions and 3 deletions
+3
View File
@@ -591,6 +591,9 @@ class AccountManager(QObject):
account_id = self.get_current_account_id()
return self.get_account(account_id) if account_id is not None else None
def is_current_account(self, account_id: str | None) -> bool:
return self.get_current_account_id() == account_id
def get_launch_account(self, account_id: str | None = None) -> LaunchAccount | None:
"""
Get launch used account.