Core: WorkbenchComboBox and WorkbenchGroup simplification.

This commit is contained in:
Paddle
2023-05-10 10:46:48 +02:00
parent 7e6fe6030f
commit 36e59562cf
4 changed files with 84 additions and 220 deletions

View File

@@ -976,7 +976,7 @@ PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args)
}
PyDict_SetItemString(Instance->_pcWorkbenchDictionary,item.c_str(),object.ptr());
Instance->signalAddWorkbench(item.c_str());
Instance->signalRefreshWorkbenches();
}
catch (const Py::Exception&) {
return nullptr;
@@ -997,9 +997,9 @@ PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
return nullptr;
}
Instance->signalRemoveWorkbench(psKey);
WorkbenchManager::instance()->removeWorkbench(psKey);
PyDict_DelItemString(Instance->_pcWorkbenchDictionary,psKey);
Instance->signalRefreshWorkbenches();
Py_Return;
}