mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Removed focus from disabled editor in UsernamesBox for bots.
This commit is contained in:
@@ -126,11 +126,14 @@ rpl::producer<> UsernameEditor::submitted() const {
|
||||
}
|
||||
|
||||
void UsernameEditor::setInnerFocus() {
|
||||
_username->setFocusFast();
|
||||
if (_username->isEnabled()) {
|
||||
_username->setFocusFast();
|
||||
}
|
||||
}
|
||||
|
||||
void UsernameEditor::setEnabled(bool value) {
|
||||
_username->setEnabled(value);
|
||||
_username->setDisplayFocused(value);
|
||||
}
|
||||
|
||||
void UsernameEditor::resizeEvent(QResizeEvent *e) {
|
||||
|
Reference in New Issue
Block a user