mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
UI: Use "Details" for upgrade outside Win/Android.
Builds might not be available so let them go for more information. They might have to actually install using their package manager or something else. Fixes #12591.
This commit is contained in:
parent
fa466d2363
commit
db51a50d8e
@ -1130,7 +1130,11 @@ void MainScreen::CreateViews() {
|
||||
UI::Drawable solid(0xFFbd9939);
|
||||
upgradeBar_->SetBG(solid);
|
||||
upgradeBar_->Add(new TextView(u->T("New version of PPSSPP available") + std::string(": ") + g_Config.upgradeVersion, new LinearLayoutParams(1.0f, textMargins)));
|
||||
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(WINDOWS)
|
||||
upgradeBar_->Add(new Button(u->T("Download"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDownloadUpgrade);
|
||||
#else
|
||||
upgradeBar_->Add(new Button(u->T("Details"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDownloadUpgrade);
|
||||
#endif
|
||||
upgradeBar_->Add(new Button(u->T("Dismiss"), new LinearLayoutParams(buttonMargins)))->OnClick.Handle(this, &MainScreen::OnDismissUpgrade);
|
||||
|
||||
// Slip in under root_
|
||||
@ -1155,9 +1159,12 @@ UI::EventReturn MainScreen::OnDownloadUpgrade(UI::EventParams &e) {
|
||||
} else {
|
||||
LaunchBrowser("market://details?id=org.ppsspp.ppsspp");
|
||||
}
|
||||
#elif PPSSPP_PLATFORM(WINDOWS)
|
||||
LaunchBrowser("https://www.ppsspp.org/downloads.html");
|
||||
#else
|
||||
// Go directly to ppsspp.org and let the user sort it out
|
||||
LaunchBrowser("https://www.ppsspp.org/downloads.html");
|
||||
// (for details and in case downloads doesn't have their platform.)
|
||||
LaunchBrowser("https://www.ppsspp.org/");
|
||||
#endif
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user