Add custom theme support, token refresh settings and check account login status.

Now launch log viewer has a new look.

Fix an issue that causes credentials method option not working.

Add log view to settings page.
This commit is contained in:
wei committed 2026-10-14 00:31:37 +08:00
1 parent 6e29fe1d5c
commit 1bafc60d95
25 files changed
+1149 -199

No files matched your search

+10 -1
View File
@@ -12,6 +12,15 @@ class LauncherException(Exception):
if user_message is not None:
self.user_message = user_message
class LauncherHTTPException(LauncherException):
user_message = "Launcher error occurred."
def __init__(self, message=None, status_code=None,*, user_message=None):
super().__init__(message or user_message or self.user_message)
if user_message is not None:
self.user_message = user_message
self.status_code = status_code
class HashMismatchException(Exception):
def __init__(self, hash_name, got_hash, expected_hash, filepath: str | Path):
if type(filepath) == Path: filepath = Path(filepath).absolute().as_posix()
@@ -109,7 +118,7 @@ class AuthenticationException(LauncherException):
class AuthenticationConnectException(LauncherException):
user_message = "An error occurred while connecting to authentication server."
class AuthenticationSessionException(LauncherException):
class AuthenticationSessionException(LauncherHTTPException):
user_message = "Authentication failed. Session may expire."
class ThirdPartyAPIException(LauncherException):