chore: improve team sync

This commit is contained in:
hstyi
2025-07-02 16:49:50 +08:00
committed by hstyi
parent 9916edbd13
commit 168c4c5c64
34 changed files with 304 additions and 178 deletions

View File

@@ -48,6 +48,7 @@ class LoginServerDialog(owner: Window) : DialogWrapper(owner) {
Server(I18n.getString("termora.settings.account.server-singapore"), "https://account.termora.app")
private val chinaServer =
Server(I18n.getString("termora.settings.account.server-china"), "https://account.termora.cn")
private val serverManager get() = ServerManager.getInstance()
init {
isModal = true
@@ -359,7 +360,7 @@ class LoginServerDialog(owner: Window) : DialogWrapper(owner) {
val loginJob = swingCoroutineScope.launch(Dispatchers.IO) {
try {
ServerManager.getInstance().login(
serverManager.login(
server, usernameTextField.text,
String(passwordField.password), mfaTextField.text.trim()
)