Skip to content

Commit

Permalink
Merge pull request #14254 from ronso0/menubar-fullscreen-skinswitch
Browse files Browse the repository at this point in the history
(fix) menubar: don't show 'hide' dialog when switching skins
  • Loading branch information
daschuer authored Jan 28, 2025
2 parents 5e0aba8 + f93d80a commit 23bbf79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mixxxmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ MixxxMainWindow::MixxxMainWindow(std::shared_ptr<mixxx::CoreServices> pCoreServi
#ifdef __LINUX__
m_supportsGlobalMenuBar(supportsGlobalMenu()),
#endif
m_inRebootMixxxView(false),
m_pDeveloperToolsDlg(nullptr),
m_pPrefDlg(nullptr),
m_toolTipsCfg(mixxx::preferences::Tooltips::On) {
Expand Down Expand Up @@ -1159,6 +1160,7 @@ void MixxxMainWindow::slotTooltipModeChanged(mixxx::preferences::Tooltips tt) {

void MixxxMainWindow::rebootMixxxView() {
qDebug() << "Now in rebootMixxxView...";
m_inRebootMixxxView = true;

ScopedWaitCursor cursor;
// safe geometry for later restoration
Expand Down Expand Up @@ -1192,6 +1194,7 @@ void MixxxMainWindow::rebootMixxxView() {
QMessageBox::critical(this,
tr("Error in skin file"),
tr("The selected skin cannot be loaded."));
m_inRebootMixxxView = false;
// m_pWidgetParent is NULL, we can't continue.
return;
}
Expand Down Expand Up @@ -1220,6 +1223,7 @@ void MixxxMainWindow::rebootMixxxView() {
setGeometry(initGeometry);
}

m_inRebootMixxxView = false;
qDebug() << "rebootMixxxView DONE";
}

Expand Down Expand Up @@ -1310,7 +1314,9 @@ bool MixxxMainWindow::eventFilter(QObject* obj, QEvent* event) {
if (!m_supportsGlobalMenuBar || isFullScreenNow)
#endif
{
alwaysHideMenuBarDlg();
if (!m_inRebootMixxxView) {
alwaysHideMenuBarDlg();
}
slotUpdateMenuBarAltKeyConnection();
}
#endif
Expand Down
1 change: 1 addition & 0 deletions src/mixxxmainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class MixxxMainWindow : public QMainWindow {
#ifdef __LINUX__
const bool m_supportsGlobalMenuBar;
#endif
bool m_inRebootMixxxView;

DlgDeveloperTools* m_pDeveloperToolsDlg;

Expand Down

0 comments on commit 23bbf79

Please sign in to comment.