mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
Fix full screen button show/hide depending on the theme.
This commit is contained in:
committed by
Luis Ángel San Martín
parent
e7922a0e51
commit
61ac25bb7b
@ -8,8 +8,8 @@
|
||||
#include <QPaintEvent>
|
||||
#include <QAction>
|
||||
|
||||
YACReaderMainToolBar::YACReaderMainToolBar(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
YACReaderMainToolBar::YACReaderMainToolBar(bool enableFullscreen, QWidget *parent)
|
||||
: QWidget(parent), enableFullscreen(enableFullscreen)
|
||||
{
|
||||
mainLayout = new QHBoxLayout;
|
||||
|
||||
@ -69,7 +69,7 @@ YACReaderMainToolBar::YACReaderMainToolBar(QWidget *parent)
|
||||
|
||||
mainLayout->addWidget(toggleComicsViewButton, 0, Qt::AlignVCenter);
|
||||
|
||||
if (!fullscreenButton->actions().isEmpty()) {
|
||||
if (enableFullscreen) {
|
||||
addWideDivider();
|
||||
mainLayout->addWidget(fullscreenButton, 0, Qt::AlignVCenter);
|
||||
}
|
||||
|
Reference in New Issue
Block a user