Skip to content

Commit

Permalink
fix: messages while viewing inbox stacking event handler (#448)
Browse files Browse the repository at this point in the history
fixes #446
  • Loading branch information
Scarso327 authored Dec 12, 2024
1 parent afbd654 commit 611c20b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ switch (lbCurSel _toolbox) do {
};

if ((_display getVariable ["MessageRecievedEvent", -1]) isEqualTo -1) then {
["MessageReceived", {
_display setVariable ["MessageRecievedEvent", (["MessageReceived", {
private _display = findDisplay 23000;
if (isNull _display && { !((lbCUrSel (_display displayCtrl 23036)) isEqualTo 1) }) exitWith {
[_event, _eventId] call ULP_fnc_removeEventHandler;
};

_display call ULP_fnc_messages;
}] call ULP_fnc_addEventHandler;
}] call ULP_fnc_addEventHandler)];
};
};
default {
Expand Down

0 comments on commit 611c20b

Please sign in to comment.