Commit 22e1f386 authored by Nikita Sirgienko's avatar Nikita Sirgienko

[Juila] Don't show internal Julia variables in Variable Manager

parent 76c6c501
......@@ -32,6 +32,7 @@
using namespace Cantor;
const QRegularExpression JuliaVariableModel::typeVariableInfo = QRegularExpression(QLatin1String("\\w+\\["));
const QStringList JuliaVariableModel::internalCantorJuliaVariables = {QLatin1String("__cantor_gr_gks_need_restore__")};
JuliaVariableModel::JuliaVariableModel(JuliaSession* session):
DefaultVariableModel(session),
......@@ -70,7 +71,7 @@ void JuliaVariableModel::update()
const QString& name = variables[i];
QString value = values[i];
if (value != JuliaVariableManagementExtension::REMOVED_VARIABLE_MARKER)
if (!internalCantorJuliaVariables.contains(name) && value != JuliaVariableManagementExtension::REMOVED_VARIABLE_MARKER)
{
// Register variable
// We use replace here, because julia return data type for some variables, and we need
......
......@@ -41,6 +41,7 @@ class JuliaVariableModel : public Cantor::DefaultVariableModel
private:
static const QRegularExpression typeVariableInfo;
static const QStringList internalCantorJuliaVariables;
private:
QDBusInterface* m_interface;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment