fix: Opening files from command line not working

This commit is contained in:
WerWolv 2023-02-06 07:11:21 +01:00
parent d02507ae4b
commit b936a28921
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ int main(int argc, char **argv, char **envp) {
// Main window
{
Window window;
if (argc == 1)
; // No arguments provided
else if (argc >= 2) {
@ -64,7 +65,7 @@ int main(int argc, char **argv, char **envp) {
}
}
Window window;
window.loop();
}