mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 08:25:38 +00:00
Check IV support early
This commit is contained in:
@@ -48,6 +48,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "countries/countries_manager.h"
|
#include "countries/countries_manager.h"
|
||||||
#include "iv/iv_delegate_impl.h"
|
#include "iv/iv_delegate_impl.h"
|
||||||
#include "iv/iv_instance.h"
|
#include "iv/iv_instance.h"
|
||||||
|
#include "iv/iv_data.h"
|
||||||
#include "lang/lang_file_parser.h"
|
#include "lang/lang_file_parser.h"
|
||||||
#include "lang/lang_translator.h"
|
#include "lang/lang_translator.h"
|
||||||
#include "lang/lang_cloud_manager.h"
|
#include "lang/lang_cloud_manager.h"
|
||||||
@@ -336,6 +337,9 @@ void Application::run() {
|
|||||||
// Create mime database, so it won't be slow later.
|
// Create mime database, so it won't be slow later.
|
||||||
QMimeDatabase().mimeTypeForName(u"text/plain"_q);
|
QMimeDatabase().mimeTypeForName(u"text/plain"_q);
|
||||||
|
|
||||||
|
// Check now to avoid re-entrance later.
|
||||||
|
[[maybe_unused]] const auto ivSupported = Iv::ShowButton();
|
||||||
|
|
||||||
_windows.emplace(nullptr, std::make_unique<Window::Controller>());
|
_windows.emplace(nullptr, std::make_unique<Window::Controller>());
|
||||||
setLastActiveWindow(_windows.front().second.get());
|
setLastActiveWindow(_windows.front().second.get());
|
||||||
_windowInSettings = _lastActivePrimaryWindow = _lastActiveWindow;
|
_windowInSettings = _lastActivePrimaryWindow = _lastActiveWindow;
|
||||||
|
Reference in New Issue
Block a user