forked from qt-creator/qt-creator
Docker: Simplify (unused) settings page code
Change-Id: I57496f1f3150b91681724878772227ef25b65789 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -82,14 +82,9 @@ void DockerSettings::updateImageList()
|
|||||||
{
|
{
|
||||||
QtcProcess process;
|
QtcProcess process;
|
||||||
process.setCommand({"docker", {"search", imageListFilter.value()}});
|
process.setCommand({"docker", {"search", imageListFilter.value()}});
|
||||||
|
|
||||||
connect(&process, &QtcProcess::finished, this, [&process, this] {
|
|
||||||
const QString data = QString::fromUtf8(process.readAllStandardOutput());
|
|
||||||
imageList.setValue(data);
|
|
||||||
});
|
|
||||||
|
|
||||||
process.start();
|
process.start();
|
||||||
process.waitForFinished();
|
process.waitForFinished();
|
||||||
|
imageList.setValue(process.cleanedStdOut());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DockerSettings::readSettings(const QSettings *settings)
|
void DockerSettings::readSettings(const QSettings *settings)
|
||||||
|
Reference in New Issue
Block a user