Make gas tank UI a bit more network-happy (#38184)
* fix: network gas tank output pressure * fix: don't overwrite gas tank output pressure during editing
This commit is contained in:
@@ -207,7 +207,9 @@ public sealed class GasTankWindow
|
||||
_btnInternals.Disabled = !canConnectInternals;
|
||||
_lblInternals.SetMarkup(Loc.GetString("gas-tank-window-internal-text",
|
||||
("status", Loc.GetString(internalsConnected ? "gas-tank-window-internal-connected" : "gas-tank-window-internal-disconnected"))));
|
||||
_spbPressure.Value = outputPressure;
|
||||
if (!_spbPressure.HasKeyboardFocus())
|
||||
// Don't update release pressure if we're currently editing it
|
||||
_spbPressure.Value = outputPressure;
|
||||
}
|
||||
|
||||
protected override void FrameUpdate(FrameEventArgs args)
|
||||
|
||||
Reference in New Issue
Block a user