mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-16 20:04:42 +00:00
Don't error if minVersion check occurs before you are connected to server
This commit is contained in:
parent
b438bb1db4
commit
88bada4f15
@ -494,7 +494,10 @@ class SyncplayClient(object):
|
||||
@wraps(f)
|
||||
def wrapper(self, *args, **kwds):
|
||||
if not utils.meetsMinVersion(self.serverVersion,minVersion):
|
||||
self.ui.showErrorMessage(getMessage("not-supported-by-server-error").format(minVersion, self.serverVersion))
|
||||
if self.serverVersion != "0.0.0":
|
||||
self.ui.showErrorMessage(getMessage("not-supported-by-server-error").format(minVersion, self.serverVersion))
|
||||
else:
|
||||
self.ui.showDebugMessage("Tried to check server version too soon (threshold: {})".format(minVersion))
|
||||
return
|
||||
return f(self, *args, **kwds)
|
||||
return wrapper
|
||||
|
Loading…
Reference in New Issue
Block a user