Skip to content

Commit

Permalink
Fixes build error on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Sep 7, 2024
1 parent 158f9b5 commit 635e5ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/launch_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ LaunchSettings::LaunchSettings(
{
auto layout = new QVBoxLayout();

#ifdef __APPLE__
layout->addWidget(buildSettings(games));
#else
layout->addWidget(buildSettings(games, std::move(vkDevices)));
#endif
layout->addLayout(buildActions(profiles));

setLayout(layout);
Expand All @@ -56,7 +60,11 @@ QWidget *LaunchSettings::buildSettings(GameListModel *games, QList<VkPhysicalDev
auto tab = new QTabWidget();

// Display settings.
#ifdef __APPLE__
m_display = new DisplaySettings();
#else
m_display = new DisplaySettings(std::move(vkDevices));
#endif

tab->addTab(m_display, loadIcon(":/resources/monitor.svg"), "Display");

Expand Down

0 comments on commit 635e5ab

Please sign in to comment.