Added dragging proxy links onto window to open connection box.

This commit is contained in:
23rd
2026-06-05 13:41:02 +03:00
parent 9d4ad88a8a
commit e29458e8aa
5 changed files with 147 additions and 0 deletions
+4
View File
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_document_media.h"
#include "dialogs/ui/dialogs_layout.h"
#include "history/history.h"
#include "history/history_drag_area.h"
#include "ui/widgets/popup_menu.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/shadow.h"
@@ -296,6 +297,9 @@ void MainWindow::setupIntro(
clearWidgets();
_intro = std::move(created);
DragArea::SetupProxyDropArea(_intro.data(), [](const QString &localUrl) {
Core::App().openLocalUrl(localUrl, {});
});
if (_passcodeLock || _setupEmailLock) {
_intro->hide();
} else {