From c4dde4bb65cd11d547a7f7fd75a0886e867d374d Mon Sep 17 00:00:00 2001 From: Alexey Kondratyev Date: Mon, 8 Nov 2021 15:14:14 +0300 Subject: [PATCH] Add property for checking in Shaper. --- src/SalomeApp/SalomeApp_Application.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index aedddec2a..a4a26f4a4 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1005,7 +1005,12 @@ void SalomeApp_Application::onLoadScript( ) PyConsole_Console* pyConsole = pythonConsole(); if ( pyConsole ) - pyConsole->exec( command ); + { + std::string aProperty("IsLoadedScript"); + setProperty(aProperty.c_str(), true); + pyConsole->exec(command); + setProperty(aProperty.c_str(), false); + } #endif } } -- 2.39.2