From d0c8cc20f5e3ce396e965465d1f29337275aac0c Mon Sep 17 00:00:00 2001 From: David Schulz Date: Mon, 28 Mar 2022 09:27:54 +0200 Subject: Python: automatically purge outdated autodetected interpreters Save whether an interpreter was automatically detected. Use this information on startup and check whether the path still exists to remove the interpreters that are gone. Fixes: QTCREATORBUG-27253 Change-Id: I094e573122f2800f643a2708b924a7a9d7e25ae1 Reviewed-by: Christian Stenger --- src/plugins/python/pythonsettings.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/python/pythonsettings.h') diff --git a/src/plugins/python/pythonsettings.h b/src/plugins/python/pythonsettings.h index 7f6ce31447..565a80d4e7 100644 --- a/src/plugins/python/pythonsettings.h +++ b/src/plugins/python/pythonsettings.h @@ -42,7 +42,8 @@ public: bool windowedSuffix = false); Interpreter(const QString &id, const QString &name, - const Utils::FilePath &command); + const Utils::FilePath &command, + bool autoDetected = true); inline bool operator==(const Interpreter &other) const { @@ -52,6 +53,7 @@ public: QString id = QUuid::createUuid().toString(); QString name; Utils::FilePath command; + bool autoDetected = true; }; class PythonSettings : public QObject -- cgit v1.2.1