Skip to content

Commit

Permalink
API: Rename text of unlock action to easily distinguish it from "Undock"
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Dec 23, 2023
1 parent c7011e0 commit 1fb9d8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spyder/api/widgets/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def _setup(self):
)
self.lock_unlock_action = self.create_action(
name=PluginMainWidgetActions.LockUnlockPosition,
text=_("Unlock position"),
text=_("Move to another position"),
tip=_("Unlock to move pane to another position"),
icon=self.create_icon('drag_dock_widget'),
triggered=self.lock_unlock_position,
Expand Down Expand Up @@ -465,7 +465,7 @@ def _on_title_bar_shown(self, visible):
method = getattr(self.lock_unlock_action, method_name)
method(_("Lock pane to the current position"))
else:
self.lock_unlock_action.setText(_('Unlock position'))
self.lock_unlock_action.setText(_('Move to another position'))
self.lock_unlock_action.setIcon(
self.create_icon('drag_dock_widget'))
for method_name in ['setToolTip', 'setStatusTip']:
Expand Down
4 changes: 2 additions & 2 deletions spyder/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def __init__(self, parent=None):

self._lock_unlock_action = create_action(
self,
text=_("Unlock position"),
text=_("Move to another position"),
tip=_("Unlock to move pane to another position"),
icon=ima.icon('drag_dock_widget'),
triggered=self._lock_unlock_position,
Expand Down Expand Up @@ -494,7 +494,7 @@ def _on_title_bar_shown(self, visible):
method = getattr(self._lock_unlock_action, method_name)
method(_("Lock pane to the current position"))
else:
self._lock_unlock_action.setText(_('Unlock position'))
self._lock_unlock_action.setText(_('Move to another position'))
self._lock_unlock_action.setIcon(ima.icon('drag_dock_widget'))
for method_name in ['setToolTip', 'setStatusTip']:
method = getattr(self._lock_unlock_action, method_name)
Expand Down

0 comments on commit 1fb9d8d

Please sign in to comment.