diff --git a/javascript/startup.js b/javascript/startup.js index 51e1800fc..3e121eb12 100644 --- a/javascript/startup.js +++ b/javascript/startup.js @@ -8,7 +8,6 @@ async function initStartup() { initModels(); getUIDefaults(); initPromptChecker(); - initLogMonitor(); initContextMenu(); initDragDrop(); initAccordions(); @@ -25,6 +24,7 @@ async function initStartup() { // make sure all of the ui is ready and options are loaded while (Object.keys(window.opts).length === 0) await sleep(50); executeCallbacks(uiReadyCallbacks); + initLogMonitor(); setupExtraNetworks(); // optinally wait for modern ui diff --git a/modules/shared.py b/modules/shared.py index 95a94b621..b092c27b5 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -769,6 +769,7 @@ def get_default_modes(): "font_size": OptionInfo(14, "Font size", gr.Slider, {"minimum": 8, "maximum": 32, "step": 1, "visible": True}), "aspect_ratios": OptionInfo("1:1, 4:3, 3:2, 16:9, 16:10, 21:9, 2:3, 3:4, 9:16, 10:16, 9:21", "Allowed aspect ratios"), "logmonitor_show": OptionInfo(True, "Show log view"), + "logmonitor_refresh_period": OptionInfo(5000, "Log view update period", gr.Slider, {"minimum": 0, "maximum": 30000, "step": 25}), "motd": OptionInfo(False, "Show MOTD"), "compact_view": OptionInfo(False, "Compact view"), "return_grid": OptionInfo(True, "Show grid in results"), @@ -788,7 +789,6 @@ def get_default_modes(): "taesd_layers": OptionInfo(3, "TAESD decode layers", gr.Slider, {"minimum": 1, "maximum": 3, "step": 1}), "live_preview_downscale": OptionInfo(True, "Downscale high resolution live previews"), - "logmonitor_refresh_period": OptionInfo(5000, "Log view update period", gr.Slider, {"minimum": 0, "maximum": 30000, "step": 25}), "notification_audio_enable": OptionInfo(False, "Play a notification upon completion"), "notification_audio_path": OptionInfo("html/notification.mp3","Path to notification sound", component_args=hide_dirs, folder=True), }))