Reverting more == True statements
This commit is contained in:
parent
3d35d2e02d
commit
a1a3598d82
@ -551,7 +551,7 @@ class ConfigDialog(QtWidgets.QDialog):
|
|||||||
config = self.config
|
config = self.config
|
||||||
playerpaths = self.playerpaths
|
playerpaths = self.playerpaths
|
||||||
error = self.error
|
error = self.error
|
||||||
if self.datacleared:
|
if self.datacleared == True:
|
||||||
error = constants.ERROR_MESSAGE_MARKER + "{}".format(getMessage("gui-data-cleared-notification"))
|
error = constants.ERROR_MESSAGE_MARKER + "{}".format(getMessage("gui-data-cleared-notification"))
|
||||||
self.error = error
|
self.error = error
|
||||||
if config['host'] is None:
|
if config['host'] is None:
|
||||||
@ -1233,7 +1233,7 @@ class ConfigDialog(QtWidgets.QDialog):
|
|||||||
|
|
||||||
def populateEmptyServerList(self):
|
def populateEmptyServerList(self):
|
||||||
if self.publicServers is None:
|
if self.publicServers is None:
|
||||||
if self.config["checkForUpdatesAutomatically"]:
|
if self.config["checkForUpdatesAutomatically"] == True:
|
||||||
self.updateServerList()
|
self.updateServerList()
|
||||||
else:
|
else:
|
||||||
currentServer = self.hostCombobox.currentText()
|
currentServer = self.hostCombobox.currentText()
|
||||||
@ -1273,7 +1273,7 @@ class ConfigDialog(QtWidgets.QDialog):
|
|||||||
self._playerProbeThread.done.connect(self._updateExecutableIcon)
|
self._playerProbeThread.done.connect(self._updateExecutableIcon)
|
||||||
self._playerProbeThread.start()
|
self._playerProbeThread.start()
|
||||||
|
|
||||||
if self.config['clearGUIData']:
|
if self.config['clearGUIData'] == True:
|
||||||
self.config['clearGUIData'] = False
|
self.config['clearGUIData'] = False
|
||||||
self.clearGUIData()
|
self.clearGUIData()
|
||||||
|
|
||||||
|
|||||||
@ -1625,7 +1625,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
else:
|
else:
|
||||||
import syncplay
|
import syncplay
|
||||||
updateMessage = getMessage("update-check-failed-notification").format(syncplay.version)
|
updateMessage = getMessage("update-check-failed-notification").format(syncplay.version)
|
||||||
if userInitiated:
|
if userInitiated == True:
|
||||||
updateURL = constants.SYNCPLAY_DOWNLOAD_URL
|
updateURL = constants.SYNCPLAY_DOWNLOAD_URL
|
||||||
if updateURL is not None:
|
if updateURL is not None:
|
||||||
reply = QtWidgets.QMessageBox.question(
|
reply = QtWidgets.QMessageBox.question(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user