desktop-ui: 'hide until ready' for Windows only

このコミットが含まれているのは:
Luke Usher 2024-02-01 18:58:50 +00:00
コミット 704fc91b9c
2個のファイルの変更6行の追加0行の削除

ファイルの表示

@ -151,7 +151,9 @@ auto nall::main(Arguments arguments) -> void {
program.create();
presentation.loadEmulators();
#if defined(PLATFORM_WINDOWS)
presentation.setVisible(true);
#endif
Application::onMain({&Program::main, &program});
Application::run();

ファイルの表示

@ -263,6 +263,10 @@ Presentation::Presentation() {
setBackgroundColor({0, 0, 0});
setAlignment(Alignment::Center);
#if !defined(PLATFORM_WINDOWS)
setVisible();
#endif
#if defined(PLATFORM_MACOS)
Application::Cocoa::onAbout([&] { aboutAction.doActivate(); });
Application::Cocoa::onActivate([&] { setFocused(); });