[Dialogs] Renamed HDCD toolbar items to be unique

The two toolbars seem to require unique identifiers for each of their
items, even when they're separate toolbars in separate windows.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-11 13:37:51 -07:00
parent 8d8089a8e9
commit 7c8a270ed2
3 changed files with 4 additions and 4 deletions

View File

@ -899,7 +899,7 @@
</connections>
</button>
</toolbarItem>
<toolbarItem implicitItemIdentifier="2DE885D7-56DA-4F25-BD36-0BBA2655C596" explicitItemIdentifier="hdcd" label="HDCD Indicator" paletteLabel="HDCD Indicator" tag="-1" image="hdcdLogoTemplate" bordered="YES" id="ZH9-ZU-skw">
<toolbarItem implicitItemIdentifier="2DE885D7-56DA-4F25-BD36-0BBA2655C596" explicitItemIdentifier="hdcdMain" label="HDCD Indicator" paletteLabel="HDCD Indicator" tag="-1" image="hdcdLogoTemplate" bordered="YES" id="ZH9-ZU-skw">
<size key="minSize" width="70" height="25"/>
<size key="maxSize" width="70" height="25"/>
</toolbarItem>
@ -1155,7 +1155,7 @@
</connections>
</button>
</toolbarItem>
<toolbarItem implicitItemIdentifier="F1A8365A-DBF5-4BB9-A2B3-3964BFA1B15D" explicitItemIdentifier="hdcd" label="HDCD Indicator" paletteLabel="HDCD Indicator" tag="-1" image="hdcdLogoTemplate" bordered="YES" visibilityPriority="-10" id="qfu-F9-bOZ">
<toolbarItem implicitItemIdentifier="F1A8365A-DBF5-4BB9-A2B3-3964BFA1B15D" explicitItemIdentifier="hdcdMini" label="HDCD Indicator" paletteLabel="HDCD Indicator" tag="-1" image="hdcdLogoTemplate" bordered="YES" visibilityPriority="-10" id="qfu-F9-bOZ">
<size key="minSize" width="70" height="25"/>
<size key="maxSize" width="70" height="25"/>
</toolbarItem>

View File

@ -31,7 +31,7 @@
- (void)showHDCDLogo:(BOOL)show {
for(NSToolbarItem* toolbarItem in [mainToolbar items]) {
if([[toolbarItem itemIdentifier] isEqualToString:@"hdcd"]) {
if([[toolbarItem itemIdentifier] isEqualToString:@"hdcdMain"]) {
if(show)
[toolbarItem setImage:hdcdLogo];
else

View File

@ -98,7 +98,7 @@ extern NSString *iTunesDropType;
- (void)showHDCDLogo:(BOOL)show {
for(NSToolbarItem *toolbarItem in [miniToolbar items]) {
if([[toolbarItem itemIdentifier] isEqualToString:@"hdcd"]) {
if([[toolbarItem itemIdentifier] isEqualToString:@"hdcdMini"]) {
if(show)
[toolbarItem setImage:hdcdLogo];
else