Browse Source

Make sure menu bar stops being hilighted when options are selected

K. Lange 3 years ago
parent
commit
b111044cca
3 changed files with 5 additions and 0 deletions
  1. 2 0
      apps/file-browser.c
  2. 1 0
      apps/help-browser.c
  3. 2 0
      apps/terminal.c

+ 2 - 0
apps/file-browser.c

@@ -69,6 +69,7 @@ static void _menu_action_help(struct MenuEntry * entry) {
 		system("help-browser file-browser.trt");
 		exit(0);
 	}
+	redraw_window();
 }
 
 static void _menu_action_about(struct MenuEntry * entry) {
@@ -77,6 +78,7 @@ static void _menu_action_about(struct MenuEntry * entry) {
 		system("about \"About File Browser\" /usr/share/icons/48/folder.bmp \"ToaruOS File Browser\" \"(C) 2018 K. Lange\n-\nPart of ToaruOS, which is free software\nreleased under the NCSA/University of Illinois\nlicense.\n-\n%https://toaruos.org\n%https://github.com/klange/toaru-nih\"");
 		exit(0);
 	}
+	redraw_window();
 }
 
 int main(int argc, char * argv[]) {

+ 1 - 0
apps/help-browser.c

@@ -69,6 +69,7 @@ static void _menu_action_about(struct MenuEntry * entry) {
 		system("about \"About Help Browser\" /usr/share/icons/48/help.bmp \"ToaruOS Help Browser\" \"(C) 2018 K. Lange\n-\nPart of ToaruOS, which is free software\nreleased under the NCSA/University of Illinois\nlicense.\n-\n%https://toaruos.org\n%https://github.com/klange/toaru-nih\"");
 		exit(0);
 	}
+	redraw_window();
 }
 
 int main(int argc, char * argv[]) {

+ 2 - 0
apps/terminal.c

@@ -1797,6 +1797,7 @@ void _menu_action_show_about(struct MenuEntry * self) {
 		system("about \"About Terminal\" /usr/share/icons/48/utilities-terminal.bmp \"ToaruOS Terminal\" \"(C) 2013-2018 K. Lange\n-\nPart of ToaruOS, which is free software\nreleased under the NCSA/University of Illinois\nlicense.\n-\n%https://toaruos.org\n%https://github.com/klange/toaru-nih\"");
 		exit(0);
 	}
+	render_decors();
 }
 
 void _menu_action_show_help(struct MenuEntry * self) {
@@ -1804,6 +1805,7 @@ void _menu_action_show_help(struct MenuEntry * self) {
 		system("help-browser terminal.trt");
 		exit(0);
 	}
+	render_decors();
 }
 
 void _menu_action_copy(struct MenuEntry * self) {