From 24eac8df872747f6283d21d36f09fe0cbb683210 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 13 Apr 2020 10:49:33 +0200 Subject: mobile: remove overwriting of line special case in ui-notification On startup, we showed progress of the population of the fulltext and listmodels for every 100th dive. This worked by overwriting the last line if the new line started with '\r'. Since we don't do that anymore, we can remove this special case. Signed-off-by: Berthold Stoeger --- mobile-widgets/qml/main.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index eae7e518b..091e53969 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -50,14 +50,7 @@ Kirigami.ApplicationWindow { showPassiveNotification(notificationText, 5000) } } else { - var oldText = textBlock.text - if (notificationText.startsWith("\r")) { - // replace the last line that was sent - oldText = oldText.substr(0, oldText.lastIndexOf("\n")) - textBlock.text = oldText + "\n" + notificationText.substr(1) - } else { - textBlock.text = oldText + "\n" + notificationText - } + textBlock.text = textBlock.text + "\n" + notificationText } } visible: false -- cgit v1.2.3-70-g09d2