Commit 5e8794ac authored by twanvl's avatar twanvl

Fixed: "X time counter(s)" for suspend keyword, caused by not adding number...

Fixed: "X time counter(s)" for suspend keyword, caused by not adding number hints for non-numeric things;
No longer request thumbnails of missing images
parent bf14f69c
...@@ -203,7 +203,7 @@ void DropDownChoiceListBase::generateThumbnailImages() { ...@@ -203,7 +203,7 @@ void DropDownChoiceListBase::generateThumbnailImages() {
ScriptableImage& img = s.choice_images[name]; ScriptableImage& img = s.choice_images[name];
if (!img.update(ctx) && status == THUMB_CHANGED) { if (!img.update(ctx) && status == THUMB_CHANGED) {
status = THUMB_OK; // no need to rebuild status = THUMB_OK; // no need to rebuild
} else { } else if (img.isReady()) {
// request this thumbnail // request this thumbnail
thumbnail_thread.request( new_intrusive4<ChoiceThumbnailRequest>( thumbnail_thread.request( new_intrusive4<ChoiceThumbnailRequest>(
&cve, i, status == THUMB_NOT_MADE && !img.local(), img.threadSafe() &cve, i, status == THUMB_NOT_MADE && !img.local(), img.threadSafe()
......
...@@ -122,13 +122,14 @@ String do_english_num(String input, String(*fun)(int)) { ...@@ -122,13 +122,14 @@ String do_english_num(String input, String(*fun)(int)) {
} }
} }
} }
return _("<hint-2>") + input;
} else { } else {
long i = 0; long i = 0;
if (input.ToLong(&i)) { if (input.ToLong(&i)) {
return fun(i); return fun(i);
} }
return input;
} }
return input;
} }
SCRIPT_FUNCTION(english_number) { SCRIPT_FUNCTION(english_number) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment