Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
4ef83834
by Daniel Brötzmann at 2020-01-29T22:54:36+01:00
1 changed file:
Changes:
| ... | ... | @@ -256,10 +256,16 @@ class Themes(Gtk.ApplicationWindow): |
| 256 | 256 |
if first is None:
|
| 257 | 257 |
self._on_add_new_theme()
|
| 258 | 258 |
|
| 259 |
+ # Don't add an option twice
|
|
| 259 | 260 |
for option in self._ui.option_listbox.get_children():
|
| 260 | 261 |
if option == row:
|
| 261 | 262 |
return
|
| 262 |
- row = Option(row.option, None)
|
|
| 263 |
+ |
|
| 264 |
+ # Get default value if it exists
|
|
| 265 |
+ value = app.css_config.get_value(
|
|
| 266 |
+ row.option.selector, row.option.attr)
|
|
| 267 |
+ |
|
| 268 |
+ row = Option(row.option, value)
|
|
| 263 | 269 |
self._ui.option_listbox.add(row)
|
| 264 | 270 |
self._ui.option_popover.popdown()
|
| 265 | 271 |
|