[paparazzi center] disable upload button for nps target

This commit is contained in:
Felix Ruess
2012-06-30 13:27:50 +02:00
parent c537ae6733
commit 8435476a3b
+2 -1
View File
@@ -361,7 +361,8 @@ let build_handler = fun ~file gui ac_combo (target_combo:Gtk_tools.combo) (log:s
(* Link target to upload button *)
Gtk_tools.combo_connect target_combo
(fun target ->
gui#button_upload#misc#set_sensitive (target <> "sim"));
(* if target is sim or nps, deactivate the upload button *)
gui#button_upload#misc#set_sensitive (target <> "sim" && target <> "nps"));
(* New Target button *)
let callback = fun _ ->