mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Removed focus from disabled editor in UsernamesBox for bots.
This commit is contained in:
@@ -301,7 +301,6 @@ void BackgroundBox::chosen(const Data::WallPaper &paper) {
|
|||||||
|
|
||||||
void BackgroundBox::resetForPeer() {
|
void BackgroundBox::resetForPeer() {
|
||||||
const auto api = &_controller->session().api();
|
const auto api = &_controller->session().api();
|
||||||
using Flag = MTPmessages_SetChatWallPaper::Flag;
|
|
||||||
api->request(MTPmessages_SetChatWallPaper(
|
api->request(MTPmessages_SetChatWallPaper(
|
||||||
MTP_flags(0),
|
MTP_flags(0),
|
||||||
_forPeer->input,
|
_forPeer->input,
|
||||||
|
@@ -126,11 +126,14 @@ rpl::producer<> UsernameEditor::submitted() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void UsernameEditor::setInnerFocus() {
|
void UsernameEditor::setInnerFocus() {
|
||||||
|
if (_username->isEnabled()) {
|
||||||
_username->setFocusFast();
|
_username->setFocusFast();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void UsernameEditor::setEnabled(bool value) {
|
void UsernameEditor::setEnabled(bool value) {
|
||||||
_username->setEnabled(value);
|
_username->setEnabled(value);
|
||||||
|
_username->setDisplayFocused(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UsernameEditor::resizeEvent(QResizeEvent *e) {
|
void UsernameEditor::resizeEvent(QResizeEvent *e) {
|
||||||
|
Reference in New Issue
Block a user