mirror of https://github.com/procxx/kepka.git
Fixed showing empty button in touchbar when archive is not ready.
This commit is contained in:
parent
abd55679af
commit
71f6dd85c2
|
@ -378,6 +378,10 @@ NSImage *createImageFromStyleIcon(const style::icon &icon, int size = kIdealIcon
|
||||||
for (auto i = kArchiveId; i <= Global::PinnedDialogsCountMax(); i++) {
|
for (auto i = kArchiveId; i <= Global::PinnedDialogsCountMax(); i++) {
|
||||||
PinnedDialogButton *button = [[PinnedDialogButton alloc] init:i];
|
PinnedDialogButton *button = [[PinnedDialogButton alloc] init:i];
|
||||||
[self.mainPinnedButtons addObject:button];
|
[self.mainPinnedButtons addObject:button];
|
||||||
|
if (i == kArchiveId) {
|
||||||
|
button.isDeletedFromView = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
[stackView addView:button.view inGravity:NSStackViewGravityCenter];
|
[stackView addView:button.view inGravity:NSStackViewGravityCenter];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue