Skip to content

Commit

Permalink
made it so it shows mic muted toasts even if optimizations service is…
Browse files Browse the repository at this point in the history
… running
  • Loading branch information
suhankins committed Dec 30, 2024
1 parent 987f00f commit 73e3a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public static void KeyProcess(string name = "m3")
action = "aura";
if (name == "fnf5")
action = "performance";
if (name == "m3" && !OptimizationService.IsRunning())
if (name == "m3")
action = "micmute";
if (name == "fnc")
action = "fnlock";
Expand Down Expand Up @@ -621,7 +621,7 @@ public static void KeyProcess(string name = "m3")

static void ToggleMic()
{
bool muteStatus = Audio.ToggleMute();
bool muteStatus = OptimizationService.IsRunning() ? Audio.IsMuted() : Audio.ToggleMute();
Program.toast.RunToast(muteStatus ? Properties.Strings.Muted : Properties.Strings.Unmuted, muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone);
if (AppConfig.IsVivoZenbook()) Program.acpi.DeviceSet(AsusACPI.MicMuteLed, muteStatus ? 1 : 0, "MicmuteLed");
}
Expand Down

0 comments on commit 73e3a8e

Please sign in to comment.