mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(),
|
.text = args["text"].toString(),
|
||||||
});
|
});
|
||||||
if (button.get() == _secondaryButton.get()) {
|
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