fix: focus input after updating visibility (#6096)

Fixes #6097
This commit is contained in:
nerix
2025-03-20 08:39:42 +01:00
committed by GitHub
parent a104a9725e
commit 9750f81ff0
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -2,6 +2,8 @@
## Unversioned
- Bugfix: Fixed the channel name input not being focused when opening the select-channel dialog. (#6096)
## 2.5.3-beta.1
- Minor: Added an option to allow multiple user-selected extensions to interact with Chatterino. (#5997)
+3 -3
View File
@@ -55,14 +55,14 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
QObject::connect(ui.channel, &AutoCheckedRadioButton::toggled, this,
[this](bool enabled) {
auto &ui = this->ui_;
ui.channelName->setVisible(enabled);
ui.channelLabel->setVisible(enabled);
if (enabled)
{
ui.channelName->setFocus();
ui.channelName->selectAll();
}
ui.channelName->setVisible(enabled);
ui.channelLabel->setVisible(enabled);
});
ui.channel->installEventFilter(&this->tabFilter_);