mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix error when running from source
This commit is contained in:
parent
d9bdbbab7f
commit
91d0542274
@ -1153,7 +1153,10 @@ class Application(QApplication):
|
||||
transient_scroller = transient_scroller()
|
||||
icon_map[(QStyle.StandardPixmap.SP_CustomBase & 0xf0000000) + 1] = I('close-for-light-theme.png')
|
||||
icon_map[(QStyle.StandardPixmap.SP_CustomBase & 0xf0000000) + 2] = I('close-for-dark-theme.png')
|
||||
self.pi.load_style(icon_map, transient_scroller)
|
||||
try:
|
||||
self.pi.load_style(icon_map, transient_scroller)
|
||||
except OverflowError: # running from source without updated runtime
|
||||
self.pi.load_style({}, transient_scroller)
|
||||
|
||||
def _send_file_open_events(self):
|
||||
with self._file_open_lock:
|
||||
|
Loading…
x
Reference in New Issue
Block a user