mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-07 05:56:36 +03:00
Fixes in ecode saveProject.
This commit is contained in:
@@ -368,10 +368,15 @@ json saveNode( Node* node ) {
|
||||
continue;
|
||||
if ( ownedWidget->isType( UI_TYPE_CODEEDITOR ) ) {
|
||||
UICodeEditor* editor = ownedWidget->asType<UICodeEditor>();
|
||||
if ( !editor->getDocument().getFilePath().empty() ) {
|
||||
if ( !editor->getDocument().isLoading() && editor->getDocument().isEmpty() )
|
||||
continue;
|
||||
if ( !editor->getDocument().getFilePath().empty() ||
|
||||
!editor->getDocument().getLoadingFilePath().empty() ) {
|
||||
json f;
|
||||
f["type"] = "editor";
|
||||
f["path"] = editor->getDocument().getFilePath();
|
||||
f["path"] = editor->getDocument().isLoading()
|
||||
? editor->getDocument().getLoadingFilePath()
|
||||
: editor->getDocument().getFilePath();
|
||||
f["selection"] = editor->getDocument().getSelections().toString();
|
||||
files.emplace_back( f );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user