Skip to content

Commit

Permalink
desktop-ui: 'hide until ready' for Windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Feb 1, 2024
1 parent 757d74b commit 704fc91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop-ui/desktop-ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 4 additions & 0 deletions desktop-ui/presentation/presentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); });
Expand Down

0 comments on commit 704fc91

Please sign in to comment.