+OngoingBackups::OngoingBackups(PreferencesWindow *pwindow, int x, int y)
+ : BC_CheckBox(x, y, pwindow->thread->preferences->ongoing_backups,
+ _("Autosave continuous backups"))
+{
+ this->pwindow = pwindow;
+ set_tooltip(_("When you stop Cinelerra, all but the newest 50 will be deleted but you risk \n running out of disk space if you do a lot of work without restarting."));
+}
+
+int OngoingBackups::handle_event()
+{
+ pwindow->thread->preferences->ongoing_backups = get_value();
+ return 1;
+}
+