Minor correction for improved bind handling when game loses focus and overlay isn't active

main 1.8.3
isark 1 year ago
parent 67f43d4b7f
commit cc96e42af0

@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "Nothing", "productName": "Nothing",
"version": "1.8.2" "version": "1.8.3"
}, },
"tauri": { "tauri": {
"systemTray": { "systemTray": {

@ -96,7 +96,7 @@ export class PlanDisplayComponent implements OnInit {
this.worldAreaService.getFullWorldAreas().subscribe(a => this.worldAreaMap = a); this.worldAreaService.getFullWorldAreas().subscribe(a => this.worldAreaMap = a);
this.overlayStateChangeHandle = this.events.listen<StateEvent>("OverlayStateChange").subscribe(this.onOverlayStateChange.bind(this)); this.overlayStateChangeHandle = this.events.listen<StateEvent>("OverlayStateChange").subscribe(this.onOverlayStateChange.bind(this));
this.events.listen<boolean>("overlay_or_target_focus").subscribe((event: Event<boolean>) => { this.events.listen<boolean>("overlay_or_target_focus").subscribe((event: Event<boolean>) => {
if (event.payload) { if (!event.payload) {
this.destroyBinds(); this.destroyBinds();
} else { } else {
this.setupBinds(); this.setupBinds();

Loading…
Cancel
Save