mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
72a3f69df7
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();
|
|
}
|