Skip to content

Commit 3fac4ac

Browse files
committed
API: Rename text of unlock action to easily distinguish it from "Undock"
1 parent 837fe47 commit 3fac4ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spyder/api/widgets/main_widget.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _setup(self):
353353
)
354354
self.lock_unlock_action = self.create_action(
355355
name=PluginMainWidgetActions.LockUnlockPosition,
356-
text=_("Unlock position"),
356+
text=_("Move to another position"),
357357
tip=_("Unlock to move pane to another position"),
358358
icon=self.create_icon('drag_dock_widget'),
359359
triggered=self.lock_unlock_position,
@@ -456,7 +456,7 @@ def _on_title_bar_shown(self, visible):
456456
method = getattr(self.lock_unlock_action, method_name)
457457
method(_("Lock pane to the current position"))
458458
else:
459-
self.lock_unlock_action.setText(_('Unlock position'))
459+
self.lock_unlock_action.setText(_('Move to another position'))
460460
self.lock_unlock_action.setIcon(
461461
self.create_icon('drag_dock_widget'))
462462
for method_name in ['setToolTip', 'setStatusTip']:

spyder/plugins/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(self, parent=None):
201201

202202
self._lock_unlock_action = create_action(
203203
self,
204-
text=_("Unlock position"),
204+
text=_("Move to another position"),
205205
tip=_("Unlock to move pane to another position"),
206206
icon=ima.icon('drag_dock_widget'),
207207
triggered=self._lock_unlock_position,
@@ -493,7 +493,7 @@ def _on_title_bar_shown(self, visible):
493493
method = getattr(self._lock_unlock_action, method_name)
494494
method(_("Lock pane to the current position"))
495495
else:
496-
self._lock_unlock_action.setText(_('Unlock position'))
496+
self._lock_unlock_action.setText(_('Move to another position'))
497497
self._lock_unlock_action.setIcon(ima.icon('drag_dock_widget'))
498498
for method_name in ['setToolTip', 'setStatusTip']:
499499
method = getattr(self._lock_unlock_action, method_name)

0 commit comments

Comments
 (0)