make ARDOUR2_UI_RC work again
[ardour.git] / gtk2_ardour / theme_manager.cc
index cc6d65a52fe360038ec4688dd3bb74c0846fea3b..e98c170e1099787b9e449f696f0693fd858fb865 100644 (file)
@@ -265,9 +265,14 @@ ThemeManager::load_rc(int which)
 void
 ThemeManager::setup_theme_buttons ()
 {
+
+       if (getenv ("ARDOUR2_UI_RC")) {
+               return;
+       }
+
        if (Config->get_ui_rc_file() == "ardour2_ui_dark.rc") {
                dark_button.set_active();
-       } else {
+       } else if (Config->get_ui_rc_file() == "ardour2_ui_light.rc") {
                light_button.set_active();
        }
 }