mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 17:53:37 +02:00
...
This commit is contained in:
parent
949156cf38
commit
8e755bf205
1 changed files with 5 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
QScrollArea, QStackedWidget, QVBoxLayout, QLabel, QFrame, QKeySequence, \
|
||||
QToolBar, QSize, pyqtSignal, QSizePolicy, QToolButton, QAction
|
||||
|
||||
from calibre.constants import __appname__, __version__
|
||||
from calibre.constants import __appname__, __version__, islinux
|
||||
from calibre.gui2 import gprefs, min_available_height, available_width, \
|
||||
warning_dialog
|
||||
from calibre.gui2.preferences import init_gui, AbortCommit, get_plugin
|
||||
|
|
@ -151,6 +151,10 @@ def __init__(self, gui, initial_plugin=None):
|
|||
if geom is not None:
|
||||
self.restoreGeometry(geom)
|
||||
|
||||
# Center
|
||||
if islinux:
|
||||
self.move(gui.rect().center() - self.rect().center())
|
||||
|
||||
self.setWindowModality(Qt.WindowModal)
|
||||
self.setWindowTitle(__appname__ + ' - ' + _('Preferences'))
|
||||
self.setWindowIcon(QIcon(I('config.png')))
|
||||
|
|
|
|||
Loading…
Reference in a new issue