Update pp size label on settings changes

Resolves #232
vlm_plotz_backup
Tyler Goodlet 2021-09-23 10:06:47 -04:00
parent aede167996
commit f973e39093
1 changed files with 4 additions and 1 deletions

View File

@ -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?