Add tabs.close_mouse_button_on_bar ignore option
This commit is contained in:
parent
674269724f
commit
4d780e23af
@ -1135,6 +1135,7 @@ tabs.close_mouse_button_on_bar:
|
|||||||
- new-tab: "Open a new tab."
|
- new-tab: "Open a new tab."
|
||||||
- close-current: "Close the current tab."
|
- close-current: "Close the current tab."
|
||||||
- close-last: "Close the last tab."
|
- close-last: "Close the last tab."
|
||||||
|
- ignore: "Don't do anything."
|
||||||
desc: Behavior when the close mouse button is pressed on the tab bar.
|
desc: Behavior when the close mouse button is pressed on the tab bar.
|
||||||
|
|
||||||
tabs.favicons.scale:
|
tabs.favicons.scale:
|
||||||
|
@ -438,7 +438,9 @@ class TabBar(QTabBar):
|
|||||||
idx = self.tabAt(e.pos())
|
idx = self.tabAt(e.pos())
|
||||||
if idx == -1:
|
if idx == -1:
|
||||||
action = config.val.tabs.close_mouse_button_on_bar
|
action = config.val.tabs.close_mouse_button_on_bar
|
||||||
if action == 'new-tab':
|
if action == 'ignore':
|
||||||
|
return
|
||||||
|
elif action == 'new-tab':
|
||||||
self.new_tab_requested.emit()
|
self.new_tab_requested.emit()
|
||||||
return
|
return
|
||||||
elif action == 'close-current':
|
elif action == 'close-current':
|
||||||
|
Loading…
Reference in New Issue
Block a user