mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
chore: remind me next time
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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=数据已加密
|
||||
|
||||
@@ -14,7 +14,7 @@ termora.quit-confirm=你要退出 {0} 嗎?
|
||||
# update
|
||||
termora.update.title=新版本
|
||||
termora.update.update=更新
|
||||
termora.update.ignore=忽略這個版本
|
||||
termora.update.ignore=下次提醒我
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user