Skip to content

Commit

Permalink
Editor: Restore Spyder 5 order of left side panels
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jan 2, 2024
1 parent 32f2fcf commit beb2c1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/plugins/debugger/utils/breakpointsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(self, editor):
# Debugger panel (Breakpoints)
self.debugger_panel = DebuggerPanel(self)
editor.panels.register(self.debugger_panel)
self.debugger_panel.order_in_zone = -1
self.debugger_panel.order_in_zone = 1
self.update_panel_visibility()

# Load breakpoints
Expand Down
4 changes: 4 additions & 0 deletions spyder/plugins/editor/widgets/codeeditor/codeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ def __init__(self, parent=None):
# Line number area management
self.linenumberarea = self.panels.register(LineNumberArea())

# Set order for the left panels
self.linenumberarea.order_in_zone = 2
self.folding_panel.order_in_zone = 0 # Debugger panel is 1

# Class and Method/Function Dropdowns
self.classfuncdropdown = self.panels.register(
ClassFunctionDropdown(),
Expand Down

0 comments on commit beb2c1a

Please sign in to comment.