mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove linux specific centering of preferences dialog
This commit is contained in:
parent
7addd2b2d4
commit
3c5b4bf212
@ -16,7 +16,7 @@ from qt.core import (
|
||||
QVBoxLayout, QWidget, pyqtSignal
|
||||
)
|
||||
|
||||
from calibre.constants import __appname__, __version__, islinux
|
||||
from calibre.constants import __appname__, __version__
|
||||
from calibre.customize.ui import preferences_plugins
|
||||
from calibre.gui2 import (
|
||||
gprefs, show_restart_warning
|
||||
@ -216,10 +216,6 @@ class Preferences(QDialog):
|
||||
|
||||
self.restore_geometry(gprefs, 'preferences dialog geometry')
|
||||
|
||||
# Center
|
||||
if islinux:
|
||||
self.move(gui.rect().center() - self.rect().center())
|
||||
|
||||
self.setWindowModality(Qt.WindowModality.ApplicationModal)
|
||||
self.setWindowTitle(__appname__ + ' — ' + _('Preferences'))
|
||||
self.setWindowIcon(QIcon.ic('config.png'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user