mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
improved rpcClear() when deleting a complex RPCSender, clearing recent inline bots on logout
This commit is contained in:
@@ -428,11 +428,11 @@ void IntroWidget::keyPressEvent(QKeyEvent *e) {
|
||||
void IntroWidget::updateAdaptiveLayout() {
|
||||
}
|
||||
|
||||
void IntroWidget::rpcInvalidate() {
|
||||
if (phone) phone->rpcInvalidate();
|
||||
if (code) code->rpcInvalidate();
|
||||
if (signup) signup->rpcInvalidate();
|
||||
if (pwdcheck) pwdcheck->rpcInvalidate();
|
||||
void IntroWidget::rpcClear() {
|
||||
if (phone) phone->rpcClear();
|
||||
if (code) code->rpcClear();
|
||||
if (signup) signup->rpcClear();
|
||||
if (pwdcheck) pwdcheck->rpcClear();
|
||||
}
|
||||
|
||||
IntroWidget::~IntroWidget() {
|
||||
|
@@ -29,7 +29,7 @@ class IntroPwdCheck;
|
||||
class IntroStage;
|
||||
class Text;
|
||||
|
||||
class IntroWidget : public TWidget {
|
||||
class IntroWidget final : public TWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
void finish(const MTPUser &user, const QImage &photo = QImage());
|
||||
|
||||
void rpcInvalidate();
|
||||
void rpcClear();
|
||||
void langChangeTo(int32 langId);
|
||||
|
||||
~IntroWidget();
|
||||
|
@@ -25,7 +25,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "gui/flatinput.h"
|
||||
#include "intro.h"
|
||||
|
||||
class IntroPwdCheck : public IntroStage, public RPCSender {
|
||||
class IntroPwdCheck final : public IntroStage, public RPCSender {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
@@ -20,7 +20,6 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtWidgets/QWidget>
|
||||
#include "gui/flatbutton.h"
|
||||
#include "intro.h"
|
||||
|
||||
|
Reference in New Issue
Block a user