Check location picker support early

This commit is contained in:
Ilya Fedin 2025-03-29 22:49:20 +00:00 committed by John Preston
parent 7d0beafce0
commit 260b72fec1

View file

@ -85,6 +85,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/qthelp_url.h"
#include "boxes/premium_limits_box.h"
#include "ui/boxes/confirm_box.h"
#include "ui/controls/location_picker.h"
#include "styles/style_window.h"
#include <QtCore/QStandardPaths>
@ -323,6 +324,8 @@ void Application::run() {
// Check now to avoid re-entrance later.
[[maybe_unused]] const auto ivSupported = Iv::ShowButton();
[[maybe_unused]] const auto lpAvailable = Ui::LocationPicker::Available(
{});
_windows.emplace(nullptr, std::make_unique<Window::Controller>());
setLastActiveWindow(_windows.front().second.get());