Update pp size label on settings changes

Resolves #232
windows_testing_volume
Tyler Goodlet 2021-09-23 10:06:47 -04:00
parent 186d221dda
commit edcbc88a42
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class SettingsPane:
except ValueError: except ValueError:
log.error(f'Invalid value for `{key}`: {value}') 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] suffix = {'currency': ' $', 'units': ' u'}[size_unit]
limit = alloc.limit() limit = alloc.limit()
@ -259,6 +259,9 @@ class SettingsPane:
self.form.fields['slots'].setText(str(alloc.slots)) self.form.fields['slots'].setText(str(alloc.slots))
self.form.fields['limit'].setText(str(limit)) 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 # 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 # can have general input handling code to report it through the
# UI in some way? # UI in some way?