fix admin pda health analyzer popup (#31097)

* damn it

* whoopsie

* no more fucky wucky fucky wuckies are GONE
This commit is contained in:
Milon
2024-08-19 05:02:18 +02:00
committed by GitHub
parent db427dc58f
commit 3e15e00af5
3 changed files with 9 additions and 2 deletions

View File

@@ -55,4 +55,10 @@ public sealed partial class HealthAnalyzerComponent : Component
/// </summary> /// </summary>
[DataField] [DataField]
public SoundSpecifier? ScanningEndSound; public SoundSpecifier? ScanningEndSound;
/// <summary>
/// Whether to show up the popup
/// </summary>
[DataField]
public bool Silent;
} }

View File

@@ -92,7 +92,7 @@ public sealed class HealthAnalyzerSystem : EntitySystem
BreakOnMove = true, BreakOnMove = true,
}); });
if (args.Target == args.User || doAfterCancelled) if (args.Target == args.User || doAfterCancelled || uid.Comp.Silent)
return; return;
var msg = Loc.GetString("health-analyzer-popup-scan-target", ("user", Identity.Entity(args.User, EntityManager))); var msg = Loc.GetString("health-analyzer-popup-scan-target", ("user", Identity.Entity(args.User, EntityManager)));

View File

@@ -678,6 +678,7 @@
id: UniversalIDCard id: UniversalIDCard
- type: HealthAnalyzer - type: HealthAnalyzer
scanDelay: 0 scanDelay: 0
silent: true
- type: CartridgeLoader - type: CartridgeLoader
uiKey: enum.PdaUiKey.Key uiKey: enum.PdaUiKey.Key
notificationsEnabled: false notificationsEnabled: false