From 34bf96377c50b5e6f3c87b286be77918164872fa Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Tue, 5 Nov 2024 13:00:07 +0000 Subject: [PATCH] Draw initial text after setUI in case it removes a back button --- apps/kbedgewrite/ChangeLog | 1 + apps/kbedgewrite/lib.js | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/kbedgewrite/ChangeLog b/apps/kbedgewrite/ChangeLog index e6dd4b19e..93f9336cf 100644 --- a/apps/kbedgewrite/ChangeLog +++ b/apps/kbedgewrite/ChangeLog @@ -1,2 +1,3 @@ 0.01: New App! 0.02: Accents and extended mode characters +0.03: Bugfix - draw initial text after the back button has been removed diff --git a/apps/kbedgewrite/lib.js b/apps/kbedgewrite/lib.js index d71ad5c73..62e699fa7 100644 --- a/apps/kbedgewrite/lib.js +++ b/apps/kbedgewrite/lib.js @@ -352,11 +352,6 @@ exports.input = function(options) { } }; - // Draw initial string - require("widget_utils").hide(); - g.setBgColor(g.theme.bg); - wrapText(); - draw(); return new Promise((resolve,reject) => { Bangle.setUI({ @@ -385,6 +380,13 @@ exports.input = function(options) { } } }); + + // Draw initial string + require("widget_utils").hide(); + g.setBgColor(g.theme.bg); + wrapText(); + draw(); + });