Skip to content

Commit

Permalink
enter fullscreen early, directly after config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed May 7, 2021
1 parent b705802 commit 719c833
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/mixxx.cpp
Expand Up @@ -251,6 +251,15 @@ void MixxxMainWindow::initialize(QApplication* pApp, const CmdlineArgs& args) {

Sandbox::setPermissionsFilePath(QDir(pConfig->getSettingsPath()).filePath("sandbox.cfg"));

// Turn on fullscreen mode
// if we were told to start in fullscreen mode on the command-line
// or if the user chose to always start in fullscreen mode.
bool fullscreenPref = pConfig->getValue<bool>(
ConfigKey("[Config]", "StartInFullscreen"));
if (args.getStartInFullscreen() || fullscreenPref) {
slotViewFullScreen(true);
}

QString resourcePath = pConfig->getResourcePath();

FontUtils::initializeFonts(resourcePath); // takes a long time
Expand Down Expand Up @@ -569,15 +578,6 @@ void MixxxMainWindow::initialize(QApplication* pApp, const CmdlineArgs& args) {
// This allows us to turn off tooltips.
pApp->installEventFilter(this); // The eventfilter is located in this
// Mixxx class as a callback.

// If we were told to start in fullscreen mode on the command-line or if
// user chose always starts in fullscreen mode, then turn on fullscreen
// mode.
bool fullscreenPref = pConfig->getValue<bool>(
ConfigKey("[Config]", "StartInFullscreen"));
if (args.getStartInFullscreen() || fullscreenPref) {
slotViewFullScreen(true);
}
emit skinLoaded();


Expand Down

0 comments on commit 719c833

Please sign in to comment.