Skip to content

Fix startup UI visibility during deferred model download#73

Merged
thomaswantstobeaskeleton merged 1 commit intomainfrom
codex/fix-launch-issue-with-setup.bat
Apr 30, 2026
Merged

Fix startup UI visibility during deferred model download#73
thomaswantstobeaskeleton merged 1 commit intomainfrom
codex/fix-launch-issue-with-setup.bat

Conversation

@thomaswantstobeaskeleton
Copy link
Copy Markdown
Owner

Motivation

  • On some systems opening a modal model-download dialog directly in MainWindow.showEvent can block the window's first paint, leaving logs and downloads complete but no visible UI, so the initial deferred download should be queued after the event loop gets a chance to paint.

Description

  • Replace the direct call to self._run_deferred_model_download() with QTimer.singleShot(0, self._run_deferred_model_download) and add a clarifying comment in ui/mainwindow.py so the modal progress dialog is launched after the main window is shown.

Testing

  • Ran python -m compileall -f -q ui/mainwindow.py and python launch.py --help, both commands succeeded.

Codex Task

@thomaswantstobeaskeleton thomaswantstobeaskeleton merged commit 030825d into main Apr 30, 2026
4 of 5 checks passed
@thomaswantstobeaskeleton thomaswantstobeaskeleton deleted the codex/fix-launch-issue-with-setup.bat branch April 30, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant