Utils: Don't save location of Python executable

This commit is contained in:
Chris Hennes
2025-11-30 20:36:44 -06:00
committed by Yorik van Havre
parent 4eb110e861
commit f366b0e2a7
3 changed files with 7 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ void DlgSettingsPythonConsole::saveSettings()
ui->PythonBlockCursor->onSave();
ui->PythonSaveHistory->onSave();
ui->ProfilerInterval->onSave();
ui->ExternalPythonExecutable->onSave();
ui->PathToPythonExecutable->onSave();
}
void DlgSettingsPythonConsole::loadSettings()
@@ -53,7 +53,7 @@ void DlgSettingsPythonConsole::loadSettings()
ui->PythonBlockCursor->onRestore();
ui->PythonSaveHistory->onRestore();
ui->ProfilerInterval->onRestore();
ui->ExternalPythonExecutable->onRestore();
ui->PathToPythonExecutable->onRestore();
}
void DlgSettingsPythonConsole::changeEvent(QEvent* event)

View File

@@ -127,7 +127,7 @@ horizontal space in Python console</string>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::PrefFileChooser" name="ExternalPythonExecutable" native="true">
<widget class="Gui::PrefFileChooser" name="PathToPythonExecutable" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -144,7 +144,7 @@ horizontal space in Python console</string>
<string>Used for package installation with pip and debugging with debugpy. Autodetected if needed and not specified.</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>ExternalPythonExecutable</cstring>
<cstring>PathToPythonExecutable</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>PythonConsole</cstring>