disallow ignoring older gd version warning

This commit is contained in:
qimiko committed 2024-02-03 18:03:40 -07:00
1 parent 7c0f1da312
commit 7694236434
1 file changed
+4 -2
@@ -247,7 +247,10 @@ fun UpdateWarning(inSafeMode: Boolean = false) {
preferenceKey = PreferenceUtils.Key.DISMISSED_GJ_UPDATE preferenceKey = PreferenceUtils.Key.DISMISSED_GJ_UPDATE
) )
if (gdVersionCode != Constants.SUPPORTED_VERSION_CODE && gdVersionCode != lastDismissedVersion) { val canDismissRelease = gdVersionCode >= Constants.SUPPORTED_VERSION_CODE
val shouldDismiss = canDismissRelease && gdVersionCode == lastDismissedVersion
if (gdVersionCode != Constants.SUPPORTED_VERSION_CODE && !shouldDismiss) {
if (showUpdateWarning) { if (showUpdateWarning) {
AlertDialog( AlertDialog(
icon = { icon = {
@@ -548,7 +551,6 @@ fun MainScreen(
} }
} }
Row { Row {
Button( Button(
onClick = { }, onClick = { },