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:
Kyle Neideck 2018-10-06 21:42:33 +10:00
parent 797d2f14f5
commit 94a5f37c2b
No known key found for this signature in database
GPG key ID: CAA8D9B8E39EC18C

View file

@ -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);