mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
This behavior and API was extremely counter-intuitive since our default behavior was for applications to never exit after you close all of their windows. Now that we exit the event loop by default when the very last GWindow is deleted, we don't have to worry about this.
15 lines
288 B
C++
15 lines
288 B
C++
#include "IRCAppWindow.h"
|
|
#include "IRCClient.h"
|
|
#include <LibGUI/GApplication.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
GApplication app(argc, argv);
|
|
|
|
IRCAppWindow app_window;
|
|
app_window.show();
|
|
|
|
printf("Entering main loop...\n");
|
|
return app.exec();
|
|
}
|