Commit 2448b80b authored by Tomaz Canabrava's avatar Tomaz Canabrava

Simplify Code

Since it's just a state-toogler, use the return value of the
method to set the values directly.
Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 579206c6
......@@ -238,16 +238,8 @@ MainWindow::MainWindow()
}
// Make sure the proper fullscreen/normal menu item is checked properly.
if (isFullScreen())
{
_ui.actionFullscreen->setChecked(true);
_ui.actionNormal->setChecked(false);
}
else
{
_ui.actionFullscreen->setChecked(false);
_ui.actionNormal->setChecked(true);
}
_ui.actionFullscreen->setChecked(isFullScreen());
_ui.actionNormal->setChecked(!isFullScreen());
// And that they will stay checked properly after user input
connect(_ui.actionFullscreen, &QAction::triggered, this, &MainWindow::fullScreenActionItemCallback);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment