mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Fix inverted margin logic
https://github.com/ankitects/anki/pull/4040#issuecomment-2921626962
This commit is contained in:
parent
3a0160343f
commit
a4fbf34ff1
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ class Browser(QMainWindow):
|
|||
|
||||
def onSidebarVisibilityChange(self, visible):
|
||||
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
|
||||
)
|
||||
margins.setLeft(0 if skip_left_margin else margins.right())
|
||||
|
|
|
|||
Loading…
Reference in a new issue