Client: Update Connect & Listener dialogs

This commit is contained in:
Ralf
2024-09-20 16:54:03 +03:00
parent 65d72a65f5
commit 15fbaebebb
9 changed files with 52 additions and 22 deletions
+16 -11
View File
@@ -13,19 +13,24 @@ MainAdaptix::~MainAdaptix(){
};
void MainAdaptix::Start() {
AuthProfile authProfile;
bool result;
auto dialogConnect = new DialogConnect();
auto authProfile = dialogConnect->StartDialog();
if ( ! authProfile.valid ) {
this->Exit();
return;
}
bool result = HttpReqLogin( &authProfile );
if ( !result ) {
MessageError("Login failure");
this->Exit();
return;
}
do {
authProfile = dialogConnect->StartDialog();
if (!authProfile.valid) {
this->Exit();
return;
}
result = HttpReqLogin(&authProfile);
if (!result) {
MessageError("Login failure");
continue;
}
} while( !result );
mainUI = new MainUI;
mainUI->showMaximized();