Skip to content

Commit

Permalink
Fix the problem of incorrectly displaying the tab bar on Mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Feb 26, 2024
1 parent 5f2a7c5 commit 44564fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/sidebar_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def setup_ui(self) -> None:
self.horizontalLayout.addWidget(self.sidebar_widget)
self.horizontalLayout.addWidget(self.Widgets)
self.sidebar.setContentsMargins(0, 10, 0, 10)
self.Widgets.setStyleSheet("QTabBar::tab {height: 0px;}")
self.Widgets.tabBar().hide()

sidebar_spacer = QSpacerItem(40, 20, QSizePolicy.Fixed, QSizePolicy.Expanding)
self.sidebar.addItem(sidebar_spacer)
Expand Down

0 comments on commit 44564fc

Please sign in to comment.