2610.13 - Adding timeframe.

This commit is contained in:
DAProgs committed 2026-10-06 07:45:27 -04:00
1 parent d45a32b8d2
commit c929b299bf
1 file changed
+7 -12
+7 -12
View File
@@ -102,7 +102,7 @@ status_box() {
echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " ║ Network Interface Status ║"
echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " ║ v0.17 ║"
echo " ║ v0.18 ║"
local ifaces
mapfile -t ifaces < <(get_interfaces)
@@ -593,7 +593,7 @@ toggle_timeframe() {
EVENTS_HOURS=1
fi
echo "$EVENTS_HOURS" > "$EVENTS_WINDOW_FILE"
MENU_ITEMS[2]="Timeframe: ${EVENTS_HOURS}h"
MENU_ITEMS[1]="Timeframe: ${EVENTS_HOURS}h"
}
main_menu() {
@@ -606,34 +606,29 @@ main_menu() {
0)
;; # Refresh — just redraw
1)
show_log_viewer
echo ""
read -rp "Press Enter to continue..."
;;
2)
toggle_timeframe
;;
3)
2)
if select_interface; then
set_static "$SELECTED_IFACE"
fi
echo ""
read -rp "Press Enter to continue..."
;;
4)
3)
if select_interface; then
set_dhcp "$SELECTED_IFACE"
fi
echo ""
read -rp "Press Enter to continue..."
;;
5)
4)
shell_access
;;
6)
5)
reboot_confirm
;;
7)
6)
run_update
;;
esac