Skip to content

Commit

Permalink
fix(profile): fix crashing when switching profile
Browse files Browse the repository at this point in the history
Fixes #1481
  • Loading branch information
Belphemur committed May 21, 2024
1 parent 765a44e commit 0bf93e6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public void NotifyProfileChanged(Profile.Profile profile, Bitmap icon, uint? pro
Image = icon,
Title = string.Format(SettingsStrings.profile_notification_text, profile.Name),
Text = string.Join("\n", profile.Devices.Select(wrapper => wrapper.DeviceInfo.NameClean).Distinct()),
Position = BannerPosition
Position = BannerPosition,
Ttl = Configuration.Ttl
};
_bannerManager.ShowNotification(bannerData);
}
Expand Down Expand Up @@ -104,4 +105,4 @@ public void NotifyMuteChanged(string microphoneName, bool newMuteState)

public bool CustomSoundCheck(DeviceFullInfo audioDevice) => audioDevice.Type == DataFlow.Render && Configuration.CustomSound != null && File.Exists(Configuration.CustomSound.FilePath);
}
}
}

0 comments on commit 0bf93e6

Please sign in to comment.