2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Remove twidget header.

This commit is contained in:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -736,7 +736,7 @@ void Application::registerLeaveSubscription(QWidget *widget) {
#ifdef Q_OS_MAC
if (const auto topLevel = widget->window()) {
if (topLevel == _window->widget()) {
auto weak = make_weak(widget);
auto weak = Ui::MakeWeak(widget);
auto subscription = _window->widget()->leaveEvents(
) | rpl::start_with_next([weak] {
if (const auto window = weak.data()) {
@@ -862,3 +862,11 @@ Application &App() {
}
} // namespace Core
namespace Ui {
void PostponeCall(FnMut<void()> &&callable) {
Core::App().postponeCall(std::move(callable));
}
} // namespace Ui