From 66479add9220098e1c6cb06de86b02b134d5b17d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Jul 2016 20:46:06 -0700 Subject: [PATCH] http: Disallow browsing when sharing. Because it's probably not what you want to do. This is less confusing. --- UI/RemoteISOScreen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/RemoteISOScreen.cpp b/UI/RemoteISOScreen.cpp index af4fa2a06..d9bca543c 100644 --- a/UI/RemoteISOScreen.cpp +++ b/UI/RemoteISOScreen.cpp @@ -263,14 +263,18 @@ void RemoteISOScreen::CreateViews() { // TODO: Could display server address for manual entry. rightColumnItems->SetSpacing(0.0f); - rightColumnItems->Add(new Choice(sy->T("Browse Games")))->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse); + Choice *browseChoice = new Choice(sy->T("Browse Games")); + rightColumnItems->Add(browseChoice)->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse); ServerStatus status = RetrieveStatus(); if (status == ServerStatus::STOPPING) { rightColumnItems->Add(new Choice(sy->T("Stopping..")))->SetDisabledPtr(&serverStopping_); + browseChoice->SetEnabled(false); } else if (status != ServerStatus::STOPPED) { rightColumnItems->Add(new Choice(sy->T("Stop Sharing")))->OnClick.Handle(this, &RemoteISOScreen::HandleStopServer); + browseChoice->SetEnabled(false); } else { rightColumnItems->Add(new Choice(sy->T("Share Games (Server)")))->OnClick.Handle(this, &RemoteISOScreen::HandleStartServer); + browseChoice->SetEnabled(true); } rightColumnItems->Add(new Spacer(25.0));