Skip to content

Commit

Permalink
remove unused button under steam deck game mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Mar 9, 2024
1 parent 48b20cb commit 86c1d0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wiliwili/source/activity/setting_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include "borealis/platforms/desktop/desktop_platform.hpp"
#endif

#ifdef __linux__
#include "borealis/platforms/desktop/steam_deck.hpp"
#endif

using namespace brls::literals;

const std::string OPENSOURCE =
Expand Down Expand Up @@ -191,6 +195,11 @@ void SettingActivity::onContentAvailable() {
p->openBrowser(ProgramConfig::instance().getConfigDir());
return true;
});
#ifdef __linux__
if (brls::isSteamDeck()) {
btnOpenConfig->setVisibility(brls::Visibility::GONE);
}
#endif
#else
btnOpenConfig->setVisibility(brls::Visibility::GONE);
#endif
Expand Down

0 comments on commit 86c1d0c

Please sign in to comment.