forked from qt-creator/qt-creator
Save/restore settings of navigation widgets more aggressively
Save/restore the current settings of a navigation widget per position, every time something changes in the navigation bar setup. Previously, only settings on exit were stored / restored on startup, which means that e.g. when you switch from the Outline to the Project Explorer and back, the settings of the Outline were lost. Reviewed-by: con
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
|
||||
#include <coreplugin/findplaceholder.h>
|
||||
#include <coreplugin/icorelistener.h>
|
||||
#include <coreplugin/inavigationwidgetfactory.h>
|
||||
#include <coreplugin/settingsdatabase.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/stylehelper.h>
|
||||
@@ -332,6 +333,9 @@ void MainWindow::extensionsInitialized()
|
||||
|
||||
m_actionManager->initialize();
|
||||
m_vcsManager->extensionsInitialized();
|
||||
|
||||
m_navigationWidget->setFactories(ExtensionSystem::PluginManager::instance()->getObjects<INavigationWidgetFactory>());
|
||||
|
||||
readSettings();
|
||||
updateContext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user