Fix: Treat closing network relay window as a choice of "No".

Issue ConnectFailure when closing the window if the relay request is
considered unhandled.
This commit is contained in:
Peter Nelson
2023-10-13 12:59:30 +01:00
committed by Peter Nelson
parent f379b31e28
commit bdcf6b6acd
3 changed files with 15 additions and 5 deletions

View File

@@ -39,5 +39,9 @@ struct NetworkCompanyInfo : NetworkCompanyStats {
std::string clients; ///< The clients that control this company (Name1, name2, ..)
};
enum NetworkRelayWindowCloseData {
NRWCD_UNHANDLED = 0, ///< Relay request is unhandled.
NRWCD_HANDLED = 1, ///< Relay request is handled, either by user or by timeout.
};
#endif /* NETWORK_GUI_H */