forked from qt-creator/qt-creator
Git: Remove note in settings dialog that does not apply anymore
Change-Id: I54e86ad419c09acc7ebd15bb4b2660d159c410f0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -132,18 +132,6 @@ GitSettings::GitSettings()
|
||||
refLogShowDate.setSettingsKey("RefLogShowDate");
|
||||
|
||||
timeout.setDefaultValue(Utils::HostOsInfo::isWindowsHost() ? 60 : 30);
|
||||
|
||||
note.setText(tr("<b>Note:</b>") + tr("Git needs to find Perl in the environment."));
|
||||
|
||||
const auto updateNoteField = [this] {
|
||||
Environment env = Environment::systemEnvironment();
|
||||
env.prependOrSetPath(path.value());
|
||||
const bool showNote = env.searchInPath("perl").isEmpty();
|
||||
note.setVisible(showNote);
|
||||
};
|
||||
|
||||
updateNoteField();
|
||||
QObject::connect(&path, &BaseAspect::changed, ¬e, updateNoteField);
|
||||
}
|
||||
|
||||
FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
|
@@ -63,7 +63,6 @@ public:
|
||||
Utils::BoolAspect followRenames;
|
||||
Utils::IntegerAspect lastResetIndex;
|
||||
Utils::BoolAspect refLogShowDate;
|
||||
Utils::TextDisplay note;
|
||||
|
||||
Utils::FilePath gitExecutable(bool *ok = nullptr, QString *errorMessage = nullptr) const;
|
||||
};
|
||||
|
Reference in New Issue
Block a user