Fix appmenu button placement in style preview (Thanks to Hugo)
This commit is contained in:
parent
fec03d7708
commit
3183b98012
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const QString&
|
|||
btn->setLeft(isLeft);
|
||||
btn->setSize(QSize(layoutMetric(LM_ButtonWidth, true, btn), layoutMetric(LM_ButtonHeight, true, btn)));
|
||||
// will be shown later on window registration
|
||||
if (btn->type() == AppMenuButton && !wrapper->menuAvailable()) {
|
||||
if (btn->type() == AppMenuButton && !isPreview() && !wrapper->menuAvailable()) {
|
||||
btn->hide();
|
||||
} else {
|
||||
btn->show();
|
||||
|
|
Loading…
Reference in a new issue