TYPE_SWITCH,
&setup.ask_for_uploading_tapes, "ask_for_uploading_tapes"
},
+ {
+ TYPE_SWITCH,
+ &setup.provide_uploading_tapes, "provide_uploading_tapes"
+ },
{
TYPE_STRING,
&setup.touch.control_type, "touch.control_type"
si->api_server_hostname = getStringCopy(API_SERVER_HOSTNAME);
si->api_server_password = getStringCopy(UNDEFINED_PASSWORD);
si->ask_for_uploading_tapes = TRUE;
+ si->provide_uploading_tapes = TRUE;
si->touch.control_type = getStringCopy(TOUCH_CONTROL_DEFAULT);
si->touch.move_distance = TOUCH_MOVE_DISTANCE_DEFAULT; // percent
char *api_server_hostname;
char *api_server_password;
boolean ask_for_uploading_tapes;
+ boolean provide_uploading_tapes;
struct SetupAutoSetupInfo auto_setup;
struct SetupLevelSetupInfo level_setup;
Request(message, REQ_CONFIRM);
+ // after all tapes have been uploaded, remove entry from setup menu
+ setup.provide_uploading_tapes = FALSE;
+ setHideSetupEntry(execOfferUploadTapes);
+
+ SaveSetup();
+
return (num_tapes_uploaded > 0);
}
void CheckUploadTapes(void)
{
+ if (!setup.provide_uploading_tapes)
+ setHideSetupEntry(execOfferUploadTapes);
+
if (!setup.ask_for_uploading_tapes)
return;
Request("You can upload your tapes from the setup menu later!",
REQ_CONFIRM);
}
+ else
+ {
+ // if tapes directory does not exist yet, never offer uploading all tapes
+ setup.provide_uploading_tapes = FALSE;
+ setHideSetupEntry(execOfferUploadTapes);
+ }
+ // after asking for uploading all tapes once, do not ask again
setup.ask_for_uploading_tapes = FALSE;
SaveSetup();