Show advisory notice when UPNP isn't supported by the router
This commit is contained in:
committed by
Matthias Mailänder
parent
a79cc6a606
commit
c9c542cb37
@@ -94,6 +94,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (labelUPnP != null)
|
||||
labelUPnP.IsVisible = () => !Game.Settings.Server.DiscoverNatDevices;
|
||||
|
||||
var labelUPnPUnsupported = panel.GetOrNull<LabelWidget>("UPNP_UNSUPPORTED_NOTICE");
|
||||
if (labelUPnPUnsupported != null)
|
||||
labelUPnPUnsupported.IsVisible = () => Game.Settings.Server.DiscoverNatDevices && !Game.Settings.Server.AllowPortForward;
|
||||
|
||||
var passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
|
||||
if (passwordField != null)
|
||||
passwordField.Text = Game.Settings.Server.Password;
|
||||
|
||||
Reference in New Issue
Block a user