Warning: session_start(): open(/var/lib/php/sessions/sess_6r4erulfavi7157ss1cn759k64, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
srecord noeq G22AutoStartPanel(G22Utils g22utils) {
G22AutoStarter autoStarter;
JButton btnCancel;
JLabel lblStatus1, lblStatus2, lblCurrentScript, lblCancel;
cachedVisualize {
autoStarter = g22utils.autoStarter();
var vis = jCenteredSection("Auto Start",
vstack(
centerAndEastWithMargin(
btnCancel = jThreadedButton("CANCEL", r { autoStarter.cancel() }),
jimageButtonScaledToWidth(16, editImageID(), "Edit auto-run scripts",
rThread { g22utils.projectActions().editScripts() })
),
lblCancel = jCenteredLabel("(Hammer Ctrl to cancel)"),
jVerticalStrut(10),
lblStatus1 = jCenteredLabel(),
lblCurrentScript = jCenteredLabel(),
lblStatus2 = jCenteredLabel(),
)
);
bindListenerToComponent(lblStatus1, autoStarter, r update);
componentPopupMenuItem(btnCancel, "Update", rThread update);
ret vis;
}
void update {
bool done = autoStarter.done();
if (done) {
setText(btnCancel, "Auto-start done");
setEnabled(lblCancel, false);
}
setEnabled(btnCancel, autoStarter.enabled() && !done);
setText(lblStatus1,
done ? "" : autoStarter.status());
setText(lblStatus2, autoStarter.scriptsRunStats());
setText(lblCancel, autoStarter.currentScriptStats());
}
}