From edcbc88a42be15356c81f6d4c4a6d52888fead30 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 23 Sep 2021 10:06:47 -0400 Subject: [PATCH] Update pp size label on settings changes Resolves #232 --- piker/ui/_position.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 9208fbd1..bdd9064e 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -232,7 +232,7 @@ class SettingsPane: except ValueError: log.error(f'Invalid value for `{key}`: {value}') - # READ out settings and update UI + # READ out settings and update the status UI / settings widgets suffix = {'currency': ' $', 'units': ' u'}[size_unit] limit = alloc.limit() @@ -259,6 +259,9 @@ class SettingsPane: self.form.fields['slots'].setText(str(alloc.slots)) self.form.fields['limit'].setText(str(limit)) + # update of level marker size label based on any new settings + tracker.update_from_pp() + # TODO: maybe return a diff of settings so if we can an error we # can have general input handling code to report it through the # UI in some way?