require host path, access/secret keys populated (#52)

main
Joel Smith 2020-09-22 10:27:48 -07:00 committed by GitHub
parent f386349e8b
commit 8216ec0c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -253,6 +253,12 @@ void Settings::onBrowseClicked() {
}
void Settings::onTestConnectionClicked() {
if (hostPathTextBox->text().isEmpty()
|| accessKeyTextBox->text().isEmpty()
|| secretKeyTextBox->text().isEmpty()) {
connStatusLabel->setText("Please set Access Key, Secret key and Host Path first.");
return;
}
testConnectionButton->startAnimation();
testConnectionButton->setEnabled(false);
currentTestReply = NetMan::getInstance().testConnection(