Skip to content

Commit 58c6e77

Browse files
committed
Removed trying to launch the other version of the app (caused issues)
1 parent 1ebfcc3 commit 58c6e77

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

core/source/app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void run_app() {
5656
gui_file.open(gui_default.c_str(), std::ios::out|std::ios::app);
5757
gui_file.close();
5858

59-
run_gui_app();
59+
std::cout << "Reopen the app to apply the changes." << std::endl;
6060
}
6161
}
6262

gui/include/switchToGUI.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ struct SwitchToCMD : public brls::Box {
1010

1111
private:
1212
bool onButtonClicked(brls::View* view);
13+
BRLS_BIND(brls::Button, main_button, "main_button");
1314
};

gui/source/gui_app.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ void run_gui_app() {
5353
std::string str = "Filesystem error: " + std::string(e.what());
5454
brls::Logger::error(str);
5555
}
56-
brls::Application::quit();
56+
//brls::Application::quit();
5757

5858
std::fstream cmd_file;
5959
cmd_file.open(cmd_default.c_str(), std::ios::out|std::ios::app);
6060
cmd_file.close();
6161

62-
return;
62+
//return;
6363
}
6464

6565
// When the loop exits, it reports a successful exit

gui/source/switchToGUI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ bool SwitchToCMD::onButtonClicked(brls::View* view) {
1616

1717
cmd_file.open(cmd_default.c_str(), std::ios::out|std::ios::app);
1818
cmd_file.close();
19+
20+
this->main_button->setText("Reopen the app to apply the changes.");
21+
1922
return true;
2023
}
2124

0 commit comments

Comments
 (0)