mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Removed focus from disabled editor in UsernamesBox for bots.
This commit is contained in:
parent
efa19d5782
commit
47756fb8c3
2 changed files with 4 additions and 2 deletions
|
@ -301,7 +301,6 @@ void BackgroundBox::chosen(const Data::WallPaper &paper) {
|
|||
|
||||
void BackgroundBox::resetForPeer() {
|
||||
const auto api = &_controller->session().api();
|
||||
using Flag = MTPmessages_SetChatWallPaper::Flag;
|
||||
api->request(MTPmessages_SetChatWallPaper(
|
||||
MTP_flags(0),
|
||||
_forPeer->input,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue