mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-26 06:00:17 +00:00
Merge pull request #578 from JTEgan/master
Fix for issue #475 dropdown arrows move instead of doing something
This commit is contained in:
commit
3f4b119c86
1 changed files with 11 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
|||
// Copyright © 2016-2020 Kyle Neideck
|
||||
// Copyright © 2017 Andrew Tonner
|
||||
// Copyright © 2021 Marcus Wu
|
||||
// Copyright © 2022 Jon Egan
|
||||
//
|
||||
|
||||
// Self Include
|
||||
|
@ -284,7 +285,16 @@ static NSString* const kMoreAppsMenuTitle = @"More Apps";
|
|||
return fabs(x - y) < 0.01; // We don't need much precision.
|
||||
};
|
||||
|
||||
if (nearEnough(button.frameCenterRotation, 0.0)) {
|
||||
bool allSubviewsShowing = true;
|
||||
for (NSView* subview in menuItem.view.subviews) {
|
||||
if (subview.hidden) {
|
||||
allSubviewsShowing = false;
|
||||
break;
|
||||
}
|
||||
//DebugMsg("BGMAppVolumes:: subview hash / hidden: (%lu) / (%hhd)", (unsigned long)subview.hash, subview.hidden);
|
||||
}
|
||||
|
||||
if (allSubviewsShowing) {
|
||||
// Hide extra controls
|
||||
DebugMsg("BGMAppVolumes::showHideExtraControls: Hiding extra controls (%s)", appName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue