git repos / SagoImageBrowser

commit 85bf6587

Poul Sander · 2026-08-11 12:51
85bf6587047e0782d52b623ac6ff76233f807e58 patch · browse files
parent 9341bab5807be88742df12ed0d3abb1e4e173951

Prevent the Windows executable from opening the console for a second or so.

Changed files

M CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index 66a3bea..2d4bf08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -51,6 +51,10 @@ qt_add_executable(SagoImageBrowser
src/thumbnaildelegate.h)
if(WIN32)
+ # Link as a GUI (not console) subsystem app, otherwise a console window
+ # briefly flashes on launch before Qt's event loop takes over.
+ set_target_properties(SagoImageBrowser PROPERTIES WIN32_EXECUTABLE TRUE)
+
enable_language(RC)
# windres resolves relative paths in .rc files against its own CWD, not
# the .rc file's location, so the icon path must be baked in as absolute.