mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Added Window::Controller pointer to data of intro widget.
This commit is contained in:
@@ -63,10 +63,12 @@ using namespace ::Intro::details;
|
||||
|
||||
Widget::Widget(
|
||||
QWidget *parent,
|
||||
not_null<Window::Controller*> controller,
|
||||
not_null<Main::Account*> account,
|
||||
EnterPoint point)
|
||||
: RpWidget(parent)
|
||||
, _account(account)
|
||||
, _data(details::Data{ .controller = controller })
|
||||
, _back(this, object_ptr<Ui::IconButton>(this, st::introBackButton))
|
||||
, _settings(
|
||||
this,
|
||||
|
@@ -29,6 +29,7 @@ class FadeWrap;
|
||||
|
||||
namespace Window {
|
||||
class ConnectionState;
|
||||
class Controller;
|
||||
} // namespace Window
|
||||
|
||||
namespace Intro {
|
||||
@@ -42,6 +43,9 @@ enum class CallStatus {
|
||||
};
|
||||
|
||||
struct Data {
|
||||
// Required for the UserpicButton.
|
||||
const not_null<Window::Controller*> controller;
|
||||
|
||||
QString country;
|
||||
QString phone;
|
||||
QByteArray phoneHash;
|
||||
@@ -91,6 +95,7 @@ class Widget
|
||||
public:
|
||||
Widget(
|
||||
QWidget *parent,
|
||||
not_null<Window::Controller*> controller,
|
||||
not_null<Main::Account*> account,
|
||||
EnterPoint point);
|
||||
|
||||
|
Reference in New Issue
Block a user