RemoteISO screens: Make them dialogs so ESC works to exit them on PC.

Also fix the background on the main one, and in savedata manager.

See #16605
This commit is contained in:
Henrik Rydgård
2023-01-01 21:33:11 +01:00
parent 9f85323b8a
commit 360de9a372
4 changed files with 14 additions and 13 deletions
+5 -5
View File
@@ -25,9 +25,9 @@
#include "UI/MiscScreens.h"
#include "UI/MainScreen.h"
class RemoteISOScreen : public UIScreenWithBackground {
class RemoteISOScreen : public UIDialogScreenWithGameBackground {
public:
RemoteISOScreen();
RemoteISOScreen(const Path &filename);
const char *tag() const override { return "RemoteISO"; }
@@ -54,7 +54,7 @@ enum class ScanStatus {
LOADED,
};
class RemoteISOConnectScreen : public UIScreenWithBackground {
class RemoteISOConnectScreen : public UIDialogScreenWithBackground {
public:
RemoteISOConnectScreen();
~RemoteISOConnectScreen();
@@ -70,7 +70,7 @@ protected:
void ExecuteLoad();
bool FindServer(std::string &resultHost, int &resultPort);
UI::TextView *statusView_;
UI::TextView *statusView_ = nullptr;
ScanStatus status_ = ScanStatus::SCANNING;
std::string statusMessage_;
@@ -78,7 +78,7 @@ protected:
std::thread *scanThread_;
std::mutex statusLock_;
std::string host_;
int port_;
int port_ = -1;
std::string url_;
std::vector<Path> games_;
};