Show 'Accounts' window when starting with no accounts

This commit is contained in:
Jaidyn Ann 2021-08-15 15:45:53 -05:00
parent 794d368c11
commit 4da76e0256
2 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,6 @@
#include "TheApp.h" #include "TheApp.h"
#include <stdio.h> #include <stdio.h>
#include <iostream>
#include <Alert.h> #include <Alert.h>
#include <Catalog.h> #include <Catalog.h>

View File

@ -70,6 +70,10 @@ MainWindow::MainWindow()
void void
MainWindow::Start() MainWindow::Start()
{ {
// No accounts, show account window
if (ProtocolManager::Get()->CountProtocolInstances() == 0)
MessageReceived(new BMessage(APP_SHOW_ACCOUNTS));
// Login all accounts // Login all accounts
fServer->LoginAll(); fServer->LoginAll();
} }