forked from openlp/openlp
Save Theme import directory
This commit is contained in:
parent
290dc5d775
commit
0f54bb81e7
@ -426,8 +426,10 @@ class ServiceManager(QtGui.QWidget):
|
||||
files retrieved from the zip file are placed in a temporary directory
|
||||
and will only be used for this service.
|
||||
"""
|
||||
filename = QtGui.QFileDialog.getOpenFileName(self, u'Open Service',
|
||||
self.config.get_last_dir(), u'Services (*.osz)')
|
||||
filename = QtGui.QFileDialog.getOpenFileName(self,
|
||||
translate(u'ThemeManager', u'Open Service'),
|
||||
self.config.get_last_dir(),
|
||||
u'Services (*.osz)')
|
||||
filename = unicode(filename)
|
||||
name = filename.split(os.path.sep)
|
||||
if filename != u'':
|
||||
|
@ -224,13 +224,14 @@ class ThemeManager(QtGui.QWidget):
|
||||
zip.close()
|
||||
|
||||
def onImportTheme(self):
|
||||
files = QtGui.QFileDialog.getOpenFileNames(None,
|
||||
translate(u'ThemeManager',
|
||||
u'Select Theme Import File'),
|
||||
self.path, u'Theme (*.*)')
|
||||
files = QtGui.QFileDialog.getOpenFileNames(self,
|
||||
translate(u'ThemeManager', u'Select Theme Import File'),
|
||||
self.config.get_last_dir(),
|
||||
u'Theme (*.*)')
|
||||
log.info(u'New Themes %s', unicode(files))
|
||||
if len(files) > 0:
|
||||
for file in files:
|
||||
self.config.set_last_dir(filename)
|
||||
self.unzipTheme(file, self.path)
|
||||
self.loadThemes()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user