Skip to content

Commit

Permalink
fix: trayWidget shouldn't acquire focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ComixHe committed Jan 29, 2024
1 parent fcab3f5 commit bfe1e95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/controlwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ void ControlWidget::addModule(module::BaseModuleInterface *module)
button->setBackgroundRole(DPalette::Button);

if (QWidget *trayWidget = trayModule->itemWidget()) {
trayWidget->setFocusPolicy(Qt::NoFocus);
QHBoxLayout *layout = new QHBoxLayout(button);
layout->setAlignment(Qt::AlignCenter);
layout->setSpacing(0);
Expand Down

0 comments on commit bfe1e95

Please sign in to comment.