mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix inverted margin logic
https://github.com/ankitects/anki/pull/4040#issuecomment-2921626962
This commit is contained in:
parent
f9f0894162
commit
6cdebd7638
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ class Browser(QMainWindow):
|
||||||
|
|
||||||
def onSidebarVisibilityChange(self, visible):
|
def onSidebarVisibilityChange(self, visible):
|
||||||
margins = self.form.verticalLayout_3.contentsMargins()
|
margins = self.form.verticalLayout_3.contentsMargins()
|
||||||
skip_left_margin = not visible and not (
|
skip_left_margin = visible and not (
|
||||||
is_mac and aqt.mw.pm.get_widget_style() == WidgetStyle.NATIVE
|
is_mac and aqt.mw.pm.get_widget_style() == WidgetStyle.NATIVE
|
||||||
)
|
)
|
||||||
margins.setLeft(0 if skip_left_margin else margins.right())
|
margins.setLeft(0 if skip_left_margin else margins.right())
|
||||||
|
|
Loading…
Reference in a new issue