mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Remove unused code
This commit is contained in:
parent
8e5666b306
commit
9a866f197b
@ -11,7 +11,7 @@ import threading
|
||||
from contextlib import contextmanager, suppress
|
||||
from functools import lru_cache
|
||||
from qt.core import (
|
||||
QT_VERSION, QApplication, QBuffer, QByteArray, QColor, QDateTime,
|
||||
QApplication, QBuffer, QByteArray, QColor, QDateTime,
|
||||
QDesktopServices, QDialog, QDialogButtonBox, QEvent, QFile, QFileDialog,
|
||||
QFileIconProvider, QFileInfo, QFont, QFontDatabase, QFontInfo, QFontMetrics,
|
||||
QGuiApplication, QIcon, QIODevice, QLocale, QNetworkProxyFactory, QObject,
|
||||
@ -1068,9 +1068,6 @@ class Application(QApplication):
|
||||
# not working in GNOME though I cannot reproduce. So force use of
|
||||
# XWayland.
|
||||
os.environ['QT_QPA_PLATFORM'] = 'xcb'
|
||||
|
||||
if isfrozen and QT_VERSION <= 0x050700 and 'wayland' in os.environ.get('QT_QPA_PLATFORM', ''):
|
||||
os.environ['QT_QPA_PLATFORM'] = 'xcb'
|
||||
if override_program_name:
|
||||
args = [override_program_name] + args[1:]
|
||||
if headless:
|
||||
|
Loading…
x
Reference in New Issue
Block a user