feat: disable tab renaming on double-click via setting (#6163)

Fixes #6156
This commit is contained in:
James Upjohn
2025-04-20 21:19:40 +12:00
committed by GitHub
parent 1f10935d78
commit 462e2ba658
4 changed files with 13 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@
- 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: 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: Fixed scrolling now working on inputs in the settings. (#6128)
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
+5
View File
@@ -326,6 +326,11 @@ public:
BoolSetting mentionUsersWithComma = {"/behaviour/mentionUsersWithComma",
true};
BoolSetting disableTabRenamingOnClick = {
"/behaviour/disableTabRenamingOnClick",
false,
};
/// Emotes
BoolSetting scaleEmotesByLineHeight = {"/emotes/scaleEmotesByLineHeight",
false};
+4 -2
View File
@@ -958,8 +958,10 @@ void NotebookTab::mouseReleaseEvent(QMouseEvent *event)
void NotebookTab::mouseDoubleClickEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton &&
this->notebook_->getAllowUserTabManagement())
const auto canRenameTab = this->notebook_->getAllowUserTabManagement() &&
getSettings()->disableTabRenamingOnClick == false;
if (event->button() == Qt::LeftButton && canRenameTab)
{
this->showRenameDialog();
}
@@ -1369,6 +1369,9 @@ void GeneralPage::initLayout(GeneralPageView &layout)
"Enable experimental Twitch EventSub support (requires restart)",
s.enableExperimentalEventSub);
layout.addCheckbox("Disable renaming of tabs on double-click",
s.disableTabRenamingOnClick);
layout.addStretch();
// invisible element for width