Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
Fixed bug (again) in HotkeyTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
iXab3r committed Nov 2, 2020
1 parent 418b217 commit 58355c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ [NotNull] [Dependency(WellKnownSchedulers.UI)] IScheduler uiScheduler)
hotkeyTracker
.WhenAnyValue(x => x.IsActive)
.ObserveOn(uiScheduler)
.Subscribe(isActive =>
.Subscribe(async isActive =>
{
if (isPushToTalkMode)
{
MuteMicrophoneCommand.Execute(!isActive);
await MuteMicrophoneCommandExecuted(!isActive);
}
else
{
MuteMicrophoneCommand.Execute(!MicrophoneMuted);
await MuteMicrophoneCommandExecuted(!MicrophoneMuted);
}
}, Log.HandleUiException)
.AddTo(Anchors);
Expand Down
2 changes: 1 addition & 1 deletion Submodules/PoeEye

0 comments on commit 58355c9

Please sign in to comment.