2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Remove some App::wnd() calls.

This commit is contained in:
John Preston
2021-02-25 19:12:51 +04:00
parent 204dd0a869
commit 54f06740d5
27 changed files with 137 additions and 106 deletions

View File

@@ -17,11 +17,16 @@ namespace HistoryView {
class ElementDelegate;
} // namespace HistoryView
namespace Window {
class SessionController;
} // namespace Window
[[nodiscard]] bool UrlRequiresConfirmation(const QUrl &url);
struct ClickHandlerContext {
FullMsgId itemId;
Fn<HistoryView::ElementDelegate*()> elementDelegate;
base::weak_ptr<Window::SessionController> sessionWindow;
};
Q_DECLARE_METATYPE(ClickHandlerContext);