Skip to content
Snippets Groups Projects
Commit ff08ac13 authored by mjk's avatar mjk
Browse files

fix: ACE: Handle invalid numeric values gracefully

parent 909bae91
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,10 @@ class AdvancedConfig(Gtk.ApplicationWindow):
value = text
if modelrow[Column.TYPE] == SETTING_TYPES[int]:
value = int(text)
try:
value = int(text)
except ValueError:
return
app.settings.set(setting, value)
modelrow[Column.VALUE] = text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment