mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Update preferences on show(), not in constructor
* If the dialog window shouldn't have a titlebar during construction, update accordingly only when showing to fix Windows displaying a window without titlebar on first show * Only save geometry if the window is floating. Otherwise geometry while docked is saved whih gives weird results on subsequent starts, since it may be floating by default anyway (at least on Linux where titlebar being disabled is allowed while floating) * Vertical title bar doesn't seem to work on Windows, add note in preferences dialog
This commit is contained in:
@@ -118,14 +118,14 @@ class PreferencesDialogBase(QDialog):
|
||||
horizontalWrap([self.fontSizeLabel, self.fontSizeSpinBox, None])
|
||||
)
|
||||
self._setupAddCheckbox("reference_bold_font",
|
||||
tr("Bold font for reference."))
|
||||
tr("Bold font for reference"))
|
||||
self.widgetsVLayout.addWidget(self.reference_bold_font)
|
||||
|
||||
self._setupAddCheckbox("details_dialog_titlebar_enabled",
|
||||
tr("Details dialog displays a title bar and is dockable"))
|
||||
self.widgetsVLayout.addWidget(self.details_dialog_titlebar_enabled)
|
||||
self._setupAddCheckbox("details_dialog_vertical_titlebar",
|
||||
tr("Details dialog displays a vertical title bar."))
|
||||
tr("Details dialog displays a vertical title bar (Linux only)"))
|
||||
self.widgetsVLayout.addWidget(self.details_dialog_vertical_titlebar)
|
||||
self.details_dialog_vertical_titlebar.setEnabled(
|
||||
self.details_dialog_titlebar_enabled.isChecked())
|
||||
|
||||
Reference in New Issue
Block a user