diff --git a/src/main/kotlin/app/termora/UpdaterManager.kt b/src/main/kotlin/app/termora/UpdaterManager.kt index a9eccb4..968ee4b 100644 --- a/src/main/kotlin/app/termora/UpdaterManager.kt +++ b/src/main/kotlin/app/termora/UpdaterManager.kt @@ -60,7 +60,6 @@ class UpdaterManager private constructor() { val isSelf get() = this == self } - private val properties get() = Database.getDatabase().properties var lastVersion = LatestVersion.self fun fetchLatestVersion(): LatestVersion { @@ -146,12 +145,4 @@ class UpdaterManager private constructor() { return LatestVersion.self } - - fun isIgnored(version: String): Boolean { - return properties.getString("ignored.version.$version", "false").toBoolean() - } - - fun ignore(version: String) { - properties.putString("ignored.version.$version", "true") - } } \ No newline at end of file diff --git a/src/main/kotlin/app/termora/actions/AppUpdateAction.kt b/src/main/kotlin/app/termora/actions/AppUpdateAction.kt index 903e20d..84246e4 100644 --- a/src/main/kotlin/app/termora/actions/AppUpdateAction.kt +++ b/src/main/kotlin/app/termora/actions/AppUpdateAction.kt @@ -82,10 +82,6 @@ class AppUpdateAction private constructor() : AnAction( return } - if (updaterManager.isIgnored(latestVersion.version)) { - return - } - try { downloadLatestPkg(latestVersion) } catch (e: Exception) { @@ -194,7 +190,6 @@ class AppUpdateAction private constructor() : AnAction( return } else if (option == JOptionPane.NO_OPTION) { isEnabled = false - updaterManager.ignore(lastVersion.version) } else if (option == JOptionPane.YES_OPTION) { updateSelf(lastVersion) } diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties index bebc36e..0867190 100644 --- a/src/main/resources/i18n/messages.properties +++ b/src/main/resources/i18n/messages.properties @@ -17,7 +17,7 @@ termora.quit-confirm=Quit {0}? # update termora.update.title=New version termora.update.update=Update -termora.update.ignore=Ignore this version +termora.update.ignore=Remind me next time # Doorman termora.doorman.safe=Data is encrypted diff --git a/src/main/resources/i18n/messages_zh_CN.properties b/src/main/resources/i18n/messages_zh_CN.properties index ecaaaab..b2979a8 100644 --- a/src/main/resources/i18n/messages_zh_CN.properties +++ b/src/main/resources/i18n/messages_zh_CN.properties @@ -15,7 +15,7 @@ termora.quit-confirm=你要退出 {0} 吗? # update termora.update.title=新版本 termora.update.update=更新 -termora.update.ignore=忽略这个版本 +termora.update.ignore=下次提醒我 # Doorman termora.doorman.safe=数据已加密 diff --git a/src/main/resources/i18n/messages_zh_TW.properties b/src/main/resources/i18n/messages_zh_TW.properties index 6249701..5457354 100644 --- a/src/main/resources/i18n/messages_zh_TW.properties +++ b/src/main/resources/i18n/messages_zh_TW.properties @@ -14,7 +14,7 @@ termora.quit-confirm=你要退出 {0} 嗎? # update termora.update.title=新版本 termora.update.update=更新 -termora.update.ignore=忽略這個版本 +termora.update.ignore=下次提醒我