mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix miniapp buttons positioning.
This commit is contained in:
parent
588a95a7ae
commit
913083ebc6
1 changed files with 5 additions and 1 deletions
|
@ -1263,7 +1263,11 @@ void Panel::processButtonMessage(
|
|||
.text = args["text"].toString(),
|
||||
});
|
||||
if (button.get() == _secondaryButton.get()) {
|
||||
_secondaryPosition = ParsePosition(args["position"].toString());
|
||||
const auto position = ParsePosition(args["position"].toString());
|
||||
if (_secondaryPosition != position) {
|
||||
_secondaryPosition = position;
|
||||
layoutButtons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue