Skip to content

Commit

Permalink
force dock reset for configs written before txs 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Mar 28, 2024
1 parent d2c9a7f commit a809588
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/texstudio.cpp
Expand Up @@ -349,6 +349,12 @@ Texstudio::Texstudio(QWidget *parent, Qt::WindowFlags flags, QSplashScreen *spla
restoreState(windowstate, 0);
//workaround as toolbar central seems not be be handled by windowstate
centralToolBar->setVisible(configManager.centralVisible);
//check if config was written before txs 4.8.0, resetDock if yes
QSettings *config=configManager.getSettings();
QString txsVersionConfigWritten=config->value("version/written_by_TXS_version").toString();
if(Version::compareStringVersion(txsVersionConfigWritten,"4.8.0")==Version::Lower){
resetDocks();
}

createStatusBar();
completer = nullptr;
Expand Down

0 comments on commit a809588

Please sign in to comment.