function pushMainConfig(reboot) {
     var mainConfig = mainUi2Dict();
     
-    pushConfigReboot = reboot;
+    pushConfigReboot = pushConfigReboot || reboot;
     pushConfigs['main'] = mainConfig;
     if (!isApplyVisible()) {
         showApply();
     var cameraConfig = cameraUi2Dict();
     var cameraId = $('#cameraSelect').val();
 
-    pushConfigReboot = reboot;
+    pushConfigReboot = pushConfigReboot || reboot;
     pushConfigs[cameraId] = cameraConfig;
     if (!isApplyVisible()) {
         showApply();