mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 11:36:30 +03:00
Remember last used model in AI Assistant.
Minor change in goToNext and goToPrev in linter errors/warnings. And a couple of nits.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "debuggerplugin.hpp"
|
||||
#include "../../notificationcenter.hpp"
|
||||
#include "../../terminalmanager.hpp"
|
||||
#include "../../uistatusbar.hpp"
|
||||
@@ -6,7 +7,6 @@
|
||||
#include "bussocket.hpp"
|
||||
#include "bussocketprocess.hpp"
|
||||
#include "dap/debuggerclientdap.hpp"
|
||||
#include "debuggerplugin.hpp"
|
||||
#include "models/breakpointsmodel.hpp"
|
||||
#include "models/processesmodel.hpp"
|
||||
#include "models/variablesmodel.hpp"
|
||||
@@ -130,7 +130,8 @@ DebuggerPlugin::~DebuggerPlugin() {
|
||||
mDebugger.reset();
|
||||
mListener.reset();
|
||||
|
||||
if ( !isShuttingDown() && getPluginContext()->getMainLayout() ) {
|
||||
if ( SceneManager::existsSingleton() && !SceneManager::instance()->isShuttingDown() &&
|
||||
getPluginContext() && getPluginContext()->getMainLayout() ) {
|
||||
for ( const auto& kb : mKeyBindings )
|
||||
getPluginContext()->getMainLayout()->getKeyBindings().removeCommandKeybind( kb.first );
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class DebuggerPlugin : public PluginBase {
|
||||
public:
|
||||
static PluginDefinition Definition() {
|
||||
return { "debugger", "Debugger", "Debugger integration",
|
||||
DebuggerPlugin::New, { 0, 0, 2 }, DebuggerPlugin::NewSync };
|
||||
DebuggerPlugin::New, { 0, 0, 3 }, DebuggerPlugin::NewSync };
|
||||
}
|
||||
|
||||
static Plugin* New( PluginManager* pluginManager );
|
||||
|
||||
Reference in New Issue
Block a user