mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Scripts can be automatically imported when the console is opened.
Editing, renaming, deleting or changing the auto-importation of a script triggers the reloading of the console (the history is cleared, Python restarted and the scripts re-imported). Change-Id: If8b933cc077ecd36cab09214b5e7a181aa3ae030
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#include "editor_controller.h"
|
||||
#include "script_parameter_controller.h"
|
||||
|
||||
namespace Code {
|
||||
|
||||
EditorController::EditorController() :
|
||||
EditorController::EditorController(ScriptParameterController * scriptParameterController) :
|
||||
ViewController(nullptr),
|
||||
m_view(this)
|
||||
m_view(this),
|
||||
m_scriptParameterController(scriptParameterController)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -24,4 +26,8 @@ void EditorController::didBecomeFirstResponder() {
|
||||
app()->setFirstResponder(&m_view);
|
||||
}
|
||||
|
||||
void EditorController::viewDidDisappear() {
|
||||
m_scriptParameterController->scriptContentEditionDidFinish();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user