Skip to content

Commit

Permalink
Fix wrong value names and use bool because this is C++
Browse files Browse the repository at this point in the history
  • Loading branch information
Huntereb committed Oct 1, 2019
1 parent 03ae3a5 commit f66dd4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/MainApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

MainApplication *mainApp;
fs::path path;
int uploading = 0;
bool uploading = false;
MainApplication::MainApplication() {
mainApp = this;
this->listLayout = ListLayout::New();
Expand All @@ -44,7 +44,7 @@ void MainApplication::onInput_upload(u64 Down, u64 Up, u64 Held) {
list();
}
if(Down & KEY_A && !uploading) {
uploaded = 1;
uploading = true;
this->uploadLayout->showUrl("Uploading... Please wait!");
return;
}
Expand All @@ -56,7 +56,7 @@ void MainApplication::onInput_upload(u64 Down, u64 Up, u64 Held) {
} else {
this->uploadLayout->showUrl("Upload failed!");
}
uploaded = 0;
uploading = false;
}
}
void MainApplication::onInput_back(u64 Down, u64 Up, u64 Held) {
Expand Down

0 comments on commit f66dd4a

Please sign in to comment.