Try to fix flickery updates (#59).
[dcpomatic.git] / src / wx / wx_util.cc
index 632dbc32e034b8ee39b8d507bfff97779a43b005..bf78ff4d7029c1e3acf38f6a6c8ff28574ea362b 100644 (file)
@@ -170,6 +170,14 @@ checked_set (wxTextCtrl* widget, string value)
        }
 }
 
+void
+checked_set (wxStaticText* widget, string value)
+{
+       if (widget->GetLabel() != std_to_wx (value)) {
+               widget->SetLabel (std_to_wx (value));
+       }
+}
+
 void
 checked_set (wxCheckBox* widget, bool value)
 {