File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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};
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments