Store: Implement progress bar for homebrew installs

This commit is contained in:
Henrik Rydgård committed 2024-01-22 11:55:42 +01:00
1 parent bd388fc094
commit c2850ff65a
45 files changed
+72 -51

No files matched your search

+4 -4
View File
@@ -311,15 +311,15 @@ void ProductView::CreateViews() {
} else {
installButton_ = nullptr;
speedView_ = nullptr;
Add(new TextView(st->T("Already Installed")));
launchButton_ = new Button(st->T("Launch Game"));
launchButton_->OnClick.Handle(this, &ProductView::OnLaunchClick);
Add(launchButton_);
uninstallButton_ = new Button(st->T("Uninstall"));
Add(uninstallButton_)->OnClick.Add([=](UI::EventParams &e) {
g_GameManager.UninstallGameOnThread(entry_.file);
return UI::EVENT_DONE;
});
launchButton_ = new Button(st->T("Launch Game"));
launchButton_->OnClick.Handle(this, &ProductView::OnLaunchClick);
Add(launchButton_);
Add(new TextView(st->T("Installed")));
}
cancelButton_ = Add(new Button(di->T("Cancel")));