mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +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:
parent
1587caef84
commit
411d36719e
24 changed files with 80 additions and 99 deletions
|
@ -51,7 +51,7 @@ static void proxy_socket_through_notifier(ClientType& client, QSocketNotifier& n
|
|||
notifier.setEnabled(true);
|
||||
|
||||
QObject::connect(¬ifier, &QSocketNotifier::activated, [&client]() mutable {
|
||||
client.socket().notifier()->on_ready_to_read();
|
||||
client.socket().notifier()->on_activation();
|
||||
});
|
||||
|
||||
client.set_deferred_invoker(make<DeferredInvokerQt>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue