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