Preferences: Workbench : Replace the functions used to retrieve the list of enabled wb

This commit is contained in:
Paddle
2023-03-24 12:58:35 +01:00
parent eb57a85fc1
commit 801afd0eeb

View File

@@ -48,7 +48,7 @@
#include "BitmapFactory.h"
#include "Command.h"
#include "DlgUndoRedo.h"
#include "DlgWorkbenchesImp.h"
#include "DlgSettingsLazyLoadedImp.h"
#include "Document.h"
#include "EditorView.h"
#include "FileDialog.h"
@@ -801,8 +801,8 @@ void WorkbenchGroup::setWorkbenchData(int index, const QString& wb)
void WorkbenchGroup::refreshWorkbenchList()
{
QStringList items = Application::Instance->workbenches();
QStringList enabled_wbs_list = DlgWorkbenchesImp::load_enabled_workbenches();
QStringList disabled_wbs_list = DlgWorkbenchesImp::load_disabled_workbenches();
QStringList enabled_wbs_list = DlgSettingsLazyLoadedImp::getEnabledWorkbenches();
QStringList disabled_wbs_list = DlgSettingsLazyLoadedImp::getDisabledWorkbenches();
QStringList enable_wbs;
// Go through the list of enabled workbenches and verify that they really exist because