mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed display of working hours in profiles.
This commit is contained in:
parent
4582e61cfc
commit
99c8edb3eb
1 changed files with 12 additions and 11 deletions
|
@ -1118,17 +1118,18 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
|||
usernameLine.subtext->overrideLinkClickHandler(callback);
|
||||
usernameLine.text->setContextMenuHook(hook);
|
||||
usernameLine.subtext->setContextMenuHook(hook);
|
||||
if (user) {
|
||||
const auto copyUsername = Ui::CreateChild<Ui::IconButton>(
|
||||
usernameLine.text->parentWidget(),
|
||||
st::infoProfileLabeledButtonQr);
|
||||
fitLabelToButton(copyUsername, usernameLine.text);
|
||||
copyUsername->setClickedCallback([=] {
|
||||
controller->show(
|
||||
Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr));
|
||||
return false;
|
||||
});
|
||||
} else {
|
||||
|
||||
const auto copyUsername = Ui::CreateChild<Ui::IconButton>(
|
||||
usernameLine.text->parentWidget(),
|
||||
st::infoProfileLabeledButtonQr);
|
||||
fitLabelToButton(copyUsername, usernameLine.text);
|
||||
copyUsername->setClickedCallback([=] {
|
||||
controller->show(
|
||||
Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr));
|
||||
return false;
|
||||
});
|
||||
|
||||
if (!user->isBot()) {
|
||||
tracker.track(result->add(
|
||||
CreateBirthday(result, controller, user)));
|
||||
tracker.track(result->add(CreateWorkingHours(result, user)));
|
||||
|
|
Loading…
Add table
Reference in a new issue