2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-24 03:17:11 +00:00
2024-02-15 15:13:46 +03:00

44 lines
1.0 KiB
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "intro/intro_start.h"
#include "kotato/kotato_lang.h"
#include "lang/lang_keys.h"
#include "intro/intro_qr.h"
#include "intro/intro_phone.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "main/main_account.h"
#include "main/main_app_config.h"
namespace Intro {
namespace details {
StartWidget::StartWidget(
QWidget *parent,
not_null<Main::Account*> account,
not_null<Data*> data)
: Step(parent, account, data, true) {
setMouseTracking(true);
setTitleText(rpl::single(u"Kotatogram Desktop"_q));
setDescriptionText(rktr("ktg_intro_about"));
show();
}
void StartWidget::submit() {
account().destroyStaleAuthorizationKeys();
goNext<QrWidget>();
}
rpl::producer<QString> StartWidget::nextButtonText() const {
return tr::lng_start_msgs();
}
} // namespace details
} // namespace Intro