mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Show the full screen button only if it has actions assigned.
This commit is contained in:
parent
655cdc619e
commit
965e8be2fe
@ -68,8 +68,11 @@ YACReaderMainToolBar::YACReaderMainToolBar(QWidget *parent)
|
||||
mainLayout->addStretch();
|
||||
|
||||
mainLayout->addWidget(toggleComicsViewButton, 0, Qt::AlignVCenter);
|
||||
addWideDivider();
|
||||
mainLayout->addWidget(fullscreenButton, 0, Qt::AlignVCenter);
|
||||
|
||||
if (!fullscreenButton->actions().isEmpty()) {
|
||||
addWideDivider();
|
||||
mainLayout->addWidget(fullscreenButton, 0, Qt::AlignVCenter);
|
||||
}
|
||||
|
||||
setLayout(mainLayout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user