mobile/UI: add signal to redraw profile

This allows us to force a redraw of the dive profile when settings change
that require a refresh of the profile.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-10 15:50:08 -08:00
parent 7fc2071059
commit 669cbdaac5
2 changed files with 12 additions and 0 deletions

View file

@ -46,6 +46,10 @@ Kirigami.ApplicationWindow {
property string filterPattern: ""
property int colWidth: undefined
// signal that the profile (and possibly other code) listens to so they
// can redraw if settings are changed
signal settingsChanged()
onNotificationTextChanged: {
// once the app is fully initialized and the UI is running, we use passive
// notifications to show the notification text, but during initialization