Skip to content

Commit 4b1f334

Browse files
committed
refactor: clean up
1 parent 7bf95a8 commit 4b1f334

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

SoundSwitch/Framework/Banner/MicrophoneMuteManager.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ public class MicrophoneMuteBannerManager
3131
private static System.Threading.SynchronizationContext _syncContext;
3232
private readonly Dictionary<string, BannerForm> _activeBanners = new();
3333
private const int SPACING = 10;
34-
35-
// Remove the local position factory and accessor
36-
private IPosition BannerPosition => AppModel.Instance.BannerPositionImpl;
3734

3835
/// <summary>
3936
/// Updates or creates a banner when a microphone's mute state changes
@@ -72,7 +69,7 @@ private void ShowMuteBanner(string microphoneId, string microphoneName)
7269
Image = Resources.MicrophoneOff,
7370
Text = microphoneName,
7471
Title = SettingsStrings.microphone_off,
75-
Position = BannerPosition,
72+
Position = AppModel.Instance.BannerPositionImpl,
7673
Ttl = TimeSpan.MaxValue, // Effectively "infinite" until explicitly dismissed
7774
CompactMode = true,
7875
OnClick = (sender, args) => AppModel.Instance.SetMicrophoneMuteState(microphoneId, false)
@@ -108,7 +105,7 @@ private void ShowTempUnmuteNotification(string microphoneId, string microphoneNa
108105
Image = Resources.MicrophoneOn,
109106
Text = microphoneName,
110107
Title = SettingsStrings.microphone_on,
111-
Position = BannerPosition,
108+
Position = AppModel.Instance.BannerPositionImpl,
112109
Ttl = TimeSpan.FromSeconds(3),
113110
CompactMode = true
114111
};

0 commit comments

Comments
 (0)