2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

0.7.19 version with passcode lock option

This commit is contained in:
John Preston
2015-03-02 15:34:16 +03:00
parent 64bc88ce82
commit ad04bf77d1
64 changed files with 2699 additions and 1197 deletions

View File

@@ -19,7 +19,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
#include "lang.h"
#include "style.h"
#include "app.h"
#include "localstorage.h"
#include "intro/intro.h"
#include "intro/introsteps.h"
@@ -89,7 +89,7 @@ void IntroWidget::langChangeTo(int32 langId) {
void IntroWidget::onChangeLang() {
cSetLang(_langChangeTo);
App::writeConfig();
Local::writeSettings();
cSetRestarting(true);
cSetRestartingToSettings(false);
App::quit();
@@ -332,8 +332,7 @@ void IntroWidget::mousePressEvent(QMouseEvent *e) {
}
void IntroWidget::finish(const MTPUser &user, const QImage &photo) {
wnd->setupMain(true);
wnd->startMain(user);
wnd->setupMain(true, &user);
if (!photo.isNull()) {
App::app()->uploadProfilePhoto(photo, MTP::authedId());
}

View File

@@ -17,9 +17,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QtWidgets/QWidget>
#include "gui/flatbutton.h"
class Window;
class IntroSteps;
class IntroPhone;
@@ -39,7 +36,7 @@ public:
void resizeEvent(QResizeEvent *e);
void mousePressEvent(QMouseEvent *e);
void keyPressEvent(QKeyEvent *e);
void updateWideMode();
void animShow(const QPixmap &bgAnimCache, bool back = false);