Detect the string "dangerzone" in docker output, instead of "localhost/dangerzone"

This commit is contained in:
Micah Lee 2020-01-09 13:11:42 -08:00
parent dd295271f5
commit 0f464dcb0c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -114,7 +114,7 @@ class SettingsWidget(QtWidgets.QWidget):
output = subprocess.check_output( output = subprocess.check_output(
[self.common.container_runtime, "image", "ls", "dangerzone"] [self.common.container_runtime, "image", "ls", "dangerzone"]
) )
if b"localhost/dangerzone" not in output: if b"dangerzone" not in output:
self.update_checkbox.setCheckState(QtCore.Qt.Checked) self.update_checkbox.setCheckState(QtCore.Qt.Checked)
self.update_checkbox.setEnabled(False) self.update_checkbox.setEnabled(False)