From 44f3eeabd11ea040a163ba8329564fae04c82593 Mon Sep 17 00:00:00 2001 From: dignow Date: Thu, 29 Jun 2023 22:48:51 +0800 Subject: [PATCH] trivial change Signed-off-by: dignow --- flutter/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index d294cb573..7827ee13c 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -999,7 +999,7 @@ Widget msgboxIcon(String type) { // title should be null Widget msgboxContent(String type, String title, String text) { String translateText(String text) { - if (text.indexOf('Failed') == 0 && text.contains(': ')) { + if (text.indexOf('Failed') == 0 && text.indexOf(': ') > 0) { List words = text.split(': '); for (var i = 0; i < words.length; ++i) { words[i] = translate(words[i]);