diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 10:49:33 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-13 08:30:51 -0700 |
commit | 24eac8df872747f6283d21d36f09fe0cbb683210 (patch) | |
tree | d3f3d1d68de9c06e1037ca77413502b62386a93f /mobile-widgets | |
parent | 8b93d67106acaa4f146ee683b837d0b0cf4e31b6 (diff) | |
download | subsurface-24eac8df872747f6283d21d36f09fe0cbb683210.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 9 |
1 files changed, 1 insertions, 8 deletions
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 |