Commit f78045c
committed
dark-mode: allow following the system preference again
After toggling dark mode on and off again, a subsequent change of the
system preference to dark mode will not respected because the toggling
stored the user's preference.
Let's store the user preference only when it differs from the user's
choice. That way, in the scenario above the system preference would be
followed again.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 8889c3a commit f78045c
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
| 647 | + | |
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments