mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCore: Simplify Core::Notifier by only allowing one event type
Not a single client of this API actually used the event mask feature to listen for readability AND writability. Let's simplify the API and have only one hook: on_activation.
This commit is contained in:
@@ -610,7 +610,7 @@ void WebContentView::create_client(WebView::EnableCallgrindProfiling enable_call
|
||||
|
||||
QObject::connect(&m_web_content_notifier, &QSocketNotifier::activated, [new_client = new_client.ptr()] {
|
||||
if (auto notifier = new_client->socket().notifier())
|
||||
notifier->on_ready_to_read();
|
||||
notifier->on_activation();
|
||||
});
|
||||
|
||||
struct DeferredInvokerQt final : IPC::DeferredInvoker {
|
||||
|
||||
Reference in New Issue
Block a user