fix generate forever

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-03 16:54:58 +02:00
parent 258d88e6bf
commit cade8c2564
5 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -17,4 +17,7 @@ def test_pipelines():
load_func = getattr(module, attr)
log.debug(f"Test: {module_name}.{attr}()")
ckpt = CheckpointInfo(filename = 'none')
load_func(ckpt)
try:
load_func(ckpt)
except Exception as e:
log.error(f"Error: {module_name}.{attr}(): {e}")
+2 -1
View File
@@ -119,7 +119,7 @@ const addContextMenuEventListener = initContextResponse[2] as () => void;
let generateOnRepeatInterval: ReturnType<typeof setInterval> | null = null;
const generateForever = (genbuttonid: string): void => {
export const generateForever = (genbuttonid: string): void => {
if (generateOnRepeatInterval) {
log('generateForever: cancel');
clearInterval(generateOnRepeatInterval);
@@ -143,6 +143,7 @@ const generateForever = (genbuttonid: string): void => {
}, 500);
}
};
window.generateForever = generateForever;
const reprocessClick = (tabId: string, state: string): void => {
const btn = document.getElementById(`${tabId}_${state}`);
+1
View File
@@ -15627,6 +15627,7 @@ var generateForever = (genbuttonid) => {
}, 500);
}
};
window.generateForever = generateForever;
var reprocessClick = (tabId, state) => {
const btn = document.getElementById(`${tabId}_${state}`);
window.submit_state = state;
+2 -2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -137,6 +137,7 @@ declare global {
timer?: (name: string, elapsed: number) => Promise<void>; // ui/timers.ts
markIfModified?: (setting_name: string, value: unknown) => void; // ui/settings.ts
appendContextMenuOption?: (targetElementSelector: string, entryName: string, entryFunction: () => void, primary?: boolean) => string; // ui/contextMenus.ts
generateForever?: (genbuttonid: string) => void; // ui/contextMenus.ts
removeContextMenuOption?: (id: string) => void; // ui/contextMenus.ts
// legacy module