mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Add Qt 6 support
Tested only on Linux so far
This commit is contained in:
@@ -44,6 +44,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "app.h"
|
||||
#include "styles/style_layers.h"
|
||||
#include "styles/style_intro.h"
|
||||
#include "base/qt_adapters.h"
|
||||
|
||||
namespace Intro {
|
||||
namespace {
|
||||
@@ -512,7 +513,8 @@ void Widget::resetAccount() {
|
||||
|
||||
const auto &type = error.type();
|
||||
if (type.startsWith(qstr("2FA_CONFIRM_WAIT_"))) {
|
||||
const auto seconds = type.midRef(
|
||||
const auto seconds = base::StringViewMid(
|
||||
type,
|
||||
qstr("2FA_CONFIRM_WAIT_").size()).toInt();
|
||||
const auto days = (seconds + 59) / 86400;
|
||||
const auto hours = ((seconds + 59) % 86400) / 3600;
|
||||
|
Reference in New Issue
Block a user