mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Check location picker support early
This commit is contained in:
parent
7d0beafce0
commit
260b72fec1
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue