From a7e7c6b70b7779bddf7f6c48751c416a9ddcba52 Mon Sep 17 00:00:00 2001 From: hstyi Date: Sat, 8 Feb 2025 09:17:48 +0800 Subject: [PATCH] chore: improve code --- src/main/kotlin/app/termora/SettingsOptionsPane.kt | 7 +++---- src/main/resources/i18n/messages.properties | 2 +- src/main/resources/i18n/messages_zh_CN.properties | 2 +- src/main/resources/i18n/messages_zh_TW.properties | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/app/termora/SettingsOptionsPane.kt b/src/main/kotlin/app/termora/SettingsOptionsPane.kt index d28a293..66cc3fb 100644 --- a/src/main/kotlin/app/termora/SettingsOptionsPane.kt +++ b/src/main/kotlin/app/termora/SettingsOptionsPane.kt @@ -46,7 +46,6 @@ import java.awt.BorderLayout import java.awt.Component import java.awt.Toolkit import java.awt.datatransfer.StringSelection -import java.awt.event.ActionEvent import java.awt.event.ItemEvent import java.io.File import java.net.URI @@ -520,10 +519,10 @@ class SettingsOptionsPane : OptionsPane() { .add(selectCopyComboBox).xy(3, rows).apply { rows += step } .add("${I18n.getString("termora.settings.terminal.cursor-style")}:").xy(1, rows) .add(cursorStyleComboBox).xy(3, rows).apply { rows += step } - .add("${I18n.getString("termora.settings.terminal.local-shell")}:").xy(1, rows) - .add(shellComboBox).xyw(3, rows, 5).apply { rows += step } .add("${I18n.getString("termora.settings.terminal.auto-close-tab")}:").xy(1, rows) - .add(autoCloseTabComboBox).xy(3, rows) + .add(autoCloseTabComboBox).xy(3, rows).apply { rows += step } + .add("${I18n.getString("termora.settings.terminal.local-shell")}:").xy(1, rows) + .add(shellComboBox).xyw(3, rows, 5) .build() diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties index a0e0cdc..d026cd1 100644 --- a/src/main/resources/i18n/messages.properties +++ b/src/main/resources/i18n/messages.properties @@ -68,7 +68,7 @@ termora.settings.terminal.select-copy=Select copy termora.settings.terminal.cursor-style=Cursor type termora.settings.terminal.local-shell=Local shell termora.settings.terminal.auto-close-tab=Auto Close Tab -termora.settings.terminal.auto-close-tab-description=Automatically close the tab when the terminal is disconnected normally. +termora.settings.terminal.auto-close-tab-description=Automatically close the tab when the terminal is disconnected normally termora.settings.sync=Sync termora.settings.sync.push=Push diff --git a/src/main/resources/i18n/messages_zh_CN.properties b/src/main/resources/i18n/messages_zh_CN.properties index fac192c..5b38168 100644 --- a/src/main/resources/i18n/messages_zh_CN.properties +++ b/src/main/resources/i18n/messages_zh_CN.properties @@ -71,7 +71,7 @@ termora.settings.terminal.select-copy=选中复制 termora.settings.terminal.cursor-style=光标样式 termora.settings.terminal.local-shell=本地终端 termora.settings.terminal.auto-close-tab=自动关闭标签 -termora.settings.terminal.auto-close-tab-description=当终端正常断开连接时自动关闭标签页。 +termora.settings.terminal.auto-close-tab-description=当终端正常断开连接时自动关闭标签页 termora.settings.sync=同步 diff --git a/src/main/resources/i18n/messages_zh_TW.properties b/src/main/resources/i18n/messages_zh_TW.properties index 2370b8f..806076c 100644 --- a/src/main/resources/i18n/messages_zh_TW.properties +++ b/src/main/resources/i18n/messages_zh_TW.properties @@ -76,7 +76,7 @@ termora.settings.terminal.select-copy=選取複製 termora.settings.terminal.cursor-style=遊標風格 termora.settings.terminal.local-shell=本地端 termora.settings.terminal.auto-close-tab=自動關閉標籤 -termora.settings.terminal.auto-close-tab-description=當終端正常斷開連線時自動關閉標籤頁。。 +termora.settings.terminal.auto-close-tab-description=當終端正常斷開連線時自動關閉標籤頁 termora.settings.sync=同步 termora.settings.sync.push=推送