mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Fixed OSX GUI anomalies
This commit is contained in:
@@ -1077,16 +1077,10 @@ class KCCGUI(KCC_ui.Ui_KCC):
|
|||||||
MW = KCCWindow
|
MW = KCCWindow
|
||||||
GUI = self
|
GUI = self
|
||||||
self.setupUi(MW)
|
self.setupUi(MW)
|
||||||
# User settings will be reverted to default ones if were created in one of the following versions
|
|
||||||
# Empty string cover all versions before this system was implemented
|
|
||||||
purgeSettingsVersions = ['']
|
|
||||||
self.icons = Icons()
|
self.icons = Icons()
|
||||||
self.webContent = KCC_rc_web.WebContent()
|
self.webContent = KCC_rc_web.WebContent()
|
||||||
self.settings = QtCore.QSettings('KindleComicConverter', 'KindleComicConverter')
|
self.settings = QtCore.QSettings('KindleComicConverter', 'KindleComicConverter')
|
||||||
self.settingsVersion = self.settings.value('settingsVersion', '', type=str)
|
self.settingsVersion = self.settings.value('settingsVersion', '', type=str)
|
||||||
if self.settingsVersion in purgeSettingsVersions:
|
|
||||||
QtCore.QSettings.clear(self.settings)
|
|
||||||
self.settingsVersion = self.settings.value('settingsVersion', '', type=str)
|
|
||||||
self.lastPath = self.settings.value('lastPath', '', type=str)
|
self.lastPath = self.settings.value('lastPath', '', type=str)
|
||||||
self.lastDevice = self.settings.value('lastDevice', 0, type=int)
|
self.lastDevice = self.settings.value('lastDevice', 0, type=int)
|
||||||
self.currentMode = self.settings.value('currentMode', 1, type=int)
|
self.currentMode = self.settings.value('currentMode', 1, type=int)
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -26,8 +26,7 @@ if platform == "darwin":
|
|||||||
py2app=dict(
|
py2app=dict(
|
||||||
argv_emulation=True,
|
argv_emulation=True,
|
||||||
iconfile='icons/comic2ebook.icns',
|
iconfile='icons/comic2ebook.icns',
|
||||||
includes=['PIL', 'sip', 'PyQt5', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtNetwork', 'PyQt5.QtWidgets',
|
includes=['sip', 'PyQt5.QtPrintSupport'],
|
||||||
'PyQt5.QtPrintSupport'],
|
|
||||||
resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
|
resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
|
||||||
plist=dict(
|
plist=dict(
|
||||||
CFBundleName=NAME,
|
CFBundleName=NAME,
|
||||||
@@ -35,8 +34,6 @@ if platform == "darwin":
|
|||||||
CFBundleGetInfoString=NAME + " " + VERSION +
|
CFBundleGetInfoString=NAME + " " + VERSION +
|
||||||
", written 2012-2015 by Ciro Mattia Gonano and Pawel Jastrzebski",
|
", written 2012-2015 by Ciro Mattia Gonano and Pawel Jastrzebski",
|
||||||
CFBundleExecutable=NAME,
|
CFBundleExecutable=NAME,
|
||||||
CFBundleIdentifier='com.github.ciromattia.kcc',
|
|
||||||
CFBundleSignature='dplt',
|
|
||||||
CFBundleDocumentTypes=[
|
CFBundleDocumentTypes=[
|
||||||
dict(
|
dict(
|
||||||
CFBundleTypeExtensions=['cbz', 'cbr', 'cb7', 'zip', 'rar', '7z', 'pdf'],
|
CFBundleTypeExtensions=['cbz', 'cbr', 'cb7', 'zip', 'rar', '7z', 'pdf'],
|
||||||
|
|||||||
Reference in New Issue
Block a user