aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxsft.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/xsft.py b/xsft.py
index 469d859..0d3b432 100755
--- a/xsft.py
+++ b/xsft.py
@@ -94,6 +94,9 @@ class MyWindow(Gtk.Window):
self.box.add(Gtk.Label('Temperature (K)'))
self.temperature = self.add_hscale(1000, 25000, conf.temperature)
+ # Update immediately so that saved values are loaded on startup
+ self.update()
+
def add_hscale(self, min_val, max_val, def_val):
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, digits=0)
scale.set_range(min_val, max_val)
bgstack15