Add command ``SetOption163 1`` to disable display of Device name in GUI header

This commit is contained in:
Theo Arends 2024-12-15 16:18:45 +01:00
parent c40b707b76
commit 6468b6edcd
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
## [14.4.1.1] ## [14.4.1.1]
### Added ### Added
- Command ``SetOption163 1`` to disable display of Device name in GUI header
### Breaking Changed ### Breaking Changed

View File

@ -116,6 +116,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
## Changelog v14.4.1.1 ## Changelog v14.4.1.1
### Added ### Added
- Command ``SetOption163 1`` to disable display of Device name in GUI header
### Breaking Changed ### Breaking Changed

View File

@ -985,11 +985,12 @@ void WSContentSendStyle_P(const char* formatP, ...) {
WebColor(COL_TEXT_WARNING), WebColor(COL_TEXT_WARNING),
#endif #endif
WebColor(COL_TITLE), WebColor(COL_TITLE),
(Web.initial_config) ? "" : (Settings->flag5.gui_module_name) ? "" : ModuleName().c_str(), SettingsTextEscaped(SET_DEVICENAME).c_str()); (Web.initial_config) ? "" : (Settings->flag5.gui_module_name) ? "" : ModuleName().c_str(), // SetOption141 - (GUI) Disable display of GUI module name (1)
(Settings->flag6.gui_device_name) ? "" : SettingsTextEscaped(SET_DEVICENAME).c_str()); // SetOption163 - (GUI) Disable display of GUI device name (1)
// SetOption53 - Show hostname and IP address in GUI main menu // SetOption53 - Show hostname and IP address in GUI main menu
#if (RESTART_AFTER_INITIAL_WIFI_CONFIG) #if (RESTART_AFTER_INITIAL_WIFI_CONFIG)
if (Settings->flag3.gui_hostname_ip) { // SetOption53 - (GUI) Show hostname and IP address in GUI main menu if (Settings->flag3.gui_hostname_ip) { // SetOption53 - (GUI) Show hostname and IP address in GUI main menu
#else #else
if ( Settings->flag3.gui_hostname_ip || ( (WiFi.getMode() == WIFI_AP_STA) && (!Web.initial_config) ) ) { if ( Settings->flag3.gui_hostname_ip || ( (WiFi.getMode() == WIFI_AP_STA) && (!Web.initial_config) ) ) {
#endif #endif