mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-10 06:34:22 +00:00
Fix BGMOutputVolumeMenuItem tooltip not always being updated.
When you changed to an output device with no data sources, the tooltip was left set to the name of the previous output device.
This commit is contained in:
parent
797d2f14f5
commit
94a5f37c2b
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ NSString* const __nonnull kGenericOutputDeviceName = @"Output Device";
|
|||
self.toolTip = (__bridge_transfer NSString*)outputDevice.CopyName();
|
||||
} else {
|
||||
deviceLabel.stringValue = (__bridge_transfer NSString*)outputDevice.CopyName();
|
||||
self.toolTip = nil;
|
||||
}
|
||||
} catch (const CAException& e) {
|
||||
BGMLogException(e);
|
||||
|
|
Loading…
Reference in a new issue