Skip to content

Commit

Permalink
remove redundant Enter Full Sreen View menu item on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Aug 31, 2020
1 parent 90303c3 commit 2ce150f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ MainWindow::MainWindow()
#ifdef Q_OS_MAC
// Qt 5 on OS X supports the standard Full Screen window widget.
ui->mainToolBar->removeAction(ui->actionFullscreen);
ui->actionEnter_Full_Screen->setVisible(false);
// OS X has a standard Full Screen shortcut we should use.
ui->actionEnter_Full_Screen->setShortcut(QKeySequence((Qt::CTRL + Qt::META + Qt::Key_F)));
#endif
Expand Down Expand Up @@ -3197,7 +3198,7 @@ void MainWindow::on_actionEnter_Full_Screen_triggered()
#else
showFullScreen();
#endif
ui->actionEnter_Full_Screen->setText(tr("Enter Full Screen"));
ui->actionEnter_Full_Screen->setText(tr("Exit Full Screen"));
}
}

Expand Down

0 comments on commit 2ce150f

Please sign in to comment.