forked from openlp/openlp
Fixed up the left-over anti-caching, and fixed a bug with the themes.
This commit is contained in:
parent
3fc666d095
commit
8e27f69382
@ -52,7 +52,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
# check to see if we have web access
|
# check to see if we have web access
|
||||||
self.web = u'http://openlp.org/files/frw/'
|
self.web = u'http://openlp.org/files/frw/'
|
||||||
self.config = SafeConfigParser()
|
self.config = SafeConfigParser()
|
||||||
self.webAccess = get_web_page(u'%s%s' % (self.web, u'download.cfg?99'))
|
self.webAccess = get_web_page(u'%s%s' % (self.web, u'download.cfg'))
|
||||||
if self.webAccess:
|
if self.webAccess:
|
||||||
files = self.webAccess.read()
|
files = self.webAccess.read()
|
||||||
self.config.readfp(io.BytesIO(files))
|
self.config.readfp(io.BytesIO(files))
|
||||||
@ -212,7 +212,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
for i in xrange(self.themesListWidget.count()):
|
for i in xrange(self.themesListWidget.count()):
|
||||||
item = self.themesListWidget.item(i)
|
item = self.themesListWidget.item(i)
|
||||||
if item.checkState() == QtCore.Qt.Checked:
|
if item.checkState() == QtCore.Qt.Checked:
|
||||||
filename, screenshot = item.data(QtCore.Qt.UserRole).toPyObject()
|
filename = item.data(QtCore.Qt.UserRole).toString()
|
||||||
size = self._getFileSize(u'%s%s' % (self.web, filename))
|
size = self._getFileSize(u'%s%s' % (self.web, filename))
|
||||||
max_progress += size
|
max_progress += size
|
||||||
self.finishButton.setVisible(False)
|
self.finishButton.setVisible(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user