feat: disable tab renaming on double-click via setting (#6163)
Fixes #6156
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- Minor: Allow for themes to set transparent values for window background on Linux. (#6137)
|
- Minor: Allow for themes to set transparent values for window background on Linux. (#6137)
|
||||||
- Minor: Popup overlay now only draws an outline when being interacted with. (#6140)
|
- Minor: Popup overlay now only draws an outline when being interacted with. (#6140)
|
||||||
- Minor: Made filters searchable in the Settings dialog search bar. (#5890)
|
- Minor: Made filters searchable in the Settings dialog search bar. (#5890)
|
||||||
|
- Minor: Allow disabling of double-click tab renaming through setting. (#6163)
|
||||||
- Bugfix: Don't create native messaging manifest file if browser directory doesn't exist. (#6116)
|
- Bugfix: Don't create native messaging manifest file if browser directory doesn't exist. (#6116)
|
||||||
- Bugfix: Fixed scrolling now working on inputs in the settings. (#6128)
|
- Bugfix: Fixed scrolling now working on inputs in the settings. (#6128)
|
||||||
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
|
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
|
||||||
|
|||||||
@@ -326,6 +326,11 @@ public:
|
|||||||
BoolSetting mentionUsersWithComma = {"/behaviour/mentionUsersWithComma",
|
BoolSetting mentionUsersWithComma = {"/behaviour/mentionUsersWithComma",
|
||||||
true};
|
true};
|
||||||
|
|
||||||
|
BoolSetting disableTabRenamingOnClick = {
|
||||||
|
"/behaviour/disableTabRenamingOnClick",
|
||||||
|
false,
|
||||||
|
};
|
||||||
|
|
||||||
/// Emotes
|
/// Emotes
|
||||||
BoolSetting scaleEmotesByLineHeight = {"/emotes/scaleEmotesByLineHeight",
|
BoolSetting scaleEmotesByLineHeight = {"/emotes/scaleEmotesByLineHeight",
|
||||||
false};
|
false};
|
||||||
|
|||||||
@@ -958,8 +958,10 @@ void NotebookTab::mouseReleaseEvent(QMouseEvent *event)
|
|||||||
|
|
||||||
void NotebookTab::mouseDoubleClickEvent(QMouseEvent *event)
|
void NotebookTab::mouseDoubleClickEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->button() == Qt::LeftButton &&
|
const auto canRenameTab = this->notebook_->getAllowUserTabManagement() &&
|
||||||
this->notebook_->getAllowUserTabManagement())
|
getSettings()->disableTabRenamingOnClick == false;
|
||||||
|
|
||||||
|
if (event->button() == Qt::LeftButton && canRenameTab)
|
||||||
{
|
{
|
||||||
this->showRenameDialog();
|
this->showRenameDialog();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1369,6 +1369,9 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
"Enable experimental Twitch EventSub support (requires restart)",
|
"Enable experimental Twitch EventSub support (requires restart)",
|
||||||
s.enableExperimentalEventSub);
|
s.enableExperimentalEventSub);
|
||||||
|
|
||||||
|
layout.addCheckbox("Disable renaming of tabs on double-click",
|
||||||
|
s.disableTabRenamingOnClick);
|
||||||
|
|
||||||
layout.addStretch();
|
layout.addStretch();
|
||||||
|
|
||||||
// invisible element for width
|
// invisible element for width
|
||||||
|
|||||||
Reference in New Issue
Block a user