Fixed datetime for existing installations
This commit is contained in:
parent
62b77d3284
commit
46041fa104
@ -8,6 +8,22 @@
|
|||||||
\f0\fs24 \cf0 Syncplay relies on the following softwares, in compliance with their licenses. \
|
\f0\fs24 \cf0 Syncplay relies on the following softwares, in compliance with their licenses. \
|
||||||
\
|
\
|
||||||
|
|
||||||
|
\b Qt.py
|
||||||
|
\b0 \
|
||||||
|
\
|
||||||
|
Copyright (c) 2016 Marcus Ottosson\
|
||||||
|
\
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy\
|
||||||
|
of this software and associated documentation files (the "Software"), to deal\
|
||||||
|
in the Software without restriction, including without limitation the rights\
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
|
||||||
|
copies of the Software, and to permit persons to whom the Software is\
|
||||||
|
furnished to do so, subject to the following conditions:\
|
||||||
|
\
|
||||||
|
The above copyright notice and this permission notice shall be included in all\
|
||||||
|
copies or substantial portions of the Software.\
|
||||||
|
\
|
||||||
|
|
||||||
\b PySide\
|
\b PySide\
|
||||||
|
|
||||||
\b0 \
|
\b0 \
|
||||||
@ -97,8 +113,7 @@ The above copyright notice and this permission notice shall be\
|
|||||||
included in all copies or substantial portions of the Software.\
|
included in all copies or substantial portions of the Software.\
|
||||||
|
|
||||||
\b \
|
\b \
|
||||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
Qt 4\
|
||||||
\cf0 Qt 4\
|
|
||||||
\
|
\
|
||||||
|
|
||||||
\b0 Copyright (C) 2015 The Qt Company Ltd.\
|
\b0 Copyright (C) 2015 The Qt Company Ltd.\
|
||||||
@ -119,8 +134,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>\
|
|||||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
||||||
|
|
||||||
\b \cf0 \
|
\b \cf0 \
|
||||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
appnope\
|
||||||
\cf0 appnope\
|
|
||||||
|
|
||||||
\b0 \
|
\b0 \
|
||||||
Copyright (c) 2013, Min Ragan-Kelley\
|
Copyright (c) 2013, Min Ragan-Kelley\
|
||||||
@ -143,11 +157,9 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\
|
|||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
|
||||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
|
||||||
|
|
||||||
\b \cf0 \
|
\b \
|
||||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
PyObjC\
|
||||||
\cf0 PyObjC\
|
|
||||||
|
|
||||||
\b0 \
|
\b0 \
|
||||||
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.\
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.\
|
||||||
|
|||||||
@ -281,6 +281,8 @@ class ConfigDialog(QtWidgets.QDialog):
|
|||||||
self.lastCheckedForUpdates = settings.value("lastChecked", None)
|
self.lastCheckedForUpdates = settings.value("lastChecked", None)
|
||||||
if self.lastCheckedForUpdates:
|
if self.lastCheckedForUpdates:
|
||||||
if self.config["lastCheckedForUpdates"] is not None and self.config["lastCheckedForUpdates"] is not "":
|
if self.config["lastCheckedForUpdates"] is not None and self.config["lastCheckedForUpdates"] is not "":
|
||||||
|
if type(self.lastCheckedForUpdates).__name__ is 'datetime':
|
||||||
|
self.lastCheckedForUpdates = QDateTime.fromString(self.lastCheckedForUpdates.strftime('%Y-%m-%d %H:%M:%S'),'yyyy-MM-dd hh:mm:ss')
|
||||||
if self.lastCheckedForUpdates.toPython() > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):
|
if self.lastCheckedForUpdates.toPython() > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):
|
||||||
self.config["lastCheckedForUpdates"] = self.lastCheckedForUpdates.toString("yyyy-MM-d HH:mm:ss.z")
|
self.config["lastCheckedForUpdates"] = self.lastCheckedForUpdates.toString("yyyy-MM-d HH:mm:ss.z")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
from syncplay.vendor import Qt
|
from syncplay.vendor import Qt
|
||||||
from syncplay.vendor.Qt import QtWidgets, QtGui, __binding__, IsPySide, IsPySide2
|
from syncplay.vendor.Qt import QtWidgets, QtGui, __binding__, __binding_version__, IsPySide, IsPySide2
|
||||||
from syncplay.vendor.Qt.QtCore import Qt, QSettings, QSize, QPoint, QUrl, QLine, QDateTime
|
from syncplay.vendor.Qt.QtCore import Qt, QSettings, QSize, QPoint, QUrl, QLine, QDateTime
|
||||||
if IsPySide2:
|
if IsPySide2:
|
||||||
from PySide2.QtCore import QStandardPaths
|
from PySide2.QtCore import QStandardPaths
|
||||||
@ -105,7 +105,7 @@ class AboutDialog(QtWidgets.QDialog):
|
|||||||
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
||||||
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
||||||
linkLabel.setOpenExternalLinks(True)
|
linkLabel.setOpenExternalLinks(True)
|
||||||
versionLabel = QtWidgets.QLabel("<center>Version v" + version + " release " + release_number + "</center>")
|
versionLabel = QtWidgets.QLabel("<center>Version v" + version + " release " + release_number + " on " + __binding__ + "</center>")
|
||||||
licenseLabel = QtWidgets.QLabel("<center><p>Copyright © 2017 Syncplay</p><p>Licensed under the Apache License, Version 2.0</p></center>")
|
licenseLabel = QtWidgets.QLabel("<center><p>Copyright © 2017 Syncplay</p><p>Licensed under the Apache License, Version 2.0</p></center>")
|
||||||
aboutIconPixmap = QtGui.QPixmap(self.resourcespath + u"syncplay.png")
|
aboutIconPixmap = QtGui.QPixmap(self.resourcespath + u"syncplay.png")
|
||||||
aboutIconLabel = QtWidgets.QLabel()
|
aboutIconLabel = QtWidgets.QLabel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user