diff options
author | bd <bdunahu@operationnull.com> | 2025-04-19 02:45:38 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-19 02:45:38 -0400 |
commit | 327ba8b631436cf21866c05c6c7cae239fe54a5c (patch) | |
tree | a97851f16329c0336969b5e9b60daa58070f1242 /gui/gui.cc | |
parent | da25748edb6997629ffb380683c8c736f24033a8 (diff) |
Small UI cleanups
Diffstat (limited to 'gui/gui.cc')
-rw-r--r-- | gui/gui.cc | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -251,7 +251,7 @@ void GUI::on_upload_intructions_btn_clicked() "Binary Files (*.bin *.rv);;All Files (*.*)"); QFile file(filePath); if (filePath.isEmpty() || !file.open(QIODevice::ReadOnly)) { - this->set_status(get_bad_file); + this->set_status(get_no_instructions); return; } @@ -268,7 +268,10 @@ void GUI::on_upload_intructions_btn_clicked() } } - this->set_status(get_load_file); + if (this->p.empty()) + this->set_status(get_no_instructions); + else + this->set_status(get_load_file); file.close(); } @@ -306,5 +309,5 @@ void GUI::on_save_program_state_btn_clicked() void GUI::set_status(const std::function<std::string()> &func) { - this->status_label->setText("CPU SAYS: \"" + QString::fromStdString(func()) + "\""); + this->status_label->setText("COMPUTER SAYS: \"" + QString::fromStdString(func()) + "\""); } |