WSL/SLF GitLab Repository

Commit 06dbfc44 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

User settings are case-sensitive (tiny performance edge in INIParser), this...

User settings are case-sensitive (tiny performance edge in INIParser), this was not matching the settings page. Clear a warning.
parent b7bffb59
...@@ -46,13 +46,13 @@ For changes, note that the keys used here are hardcoded in INIshell also. ...@@ -46,13 +46,13 @@ For changes, note that the keys used here are hardcoded in INIshell also.
<o value="de" caption="Deutsch" help="German"/> <o value="de" caption="Deutsch" help="German"/>
<help>Note that this only concerns the static part of INIshell and the applications' descriptions are up to the software's vendor to translate.</help> <help>Note that this only concerns the static part of INIshell and the applications' descriptions are up to the software's vendor to translate.</help>
</parameter> </parameter>
<parameter key="user::appearance::remembersizes" caption="Remember window sizes" type="checkbox" default="true" help="Restore windows sizes"> <parameter key="user::appearance::remembersizes" caption="Remember window sizes" type="checkbox" default="TRUE" help="Restore windows sizes">
<help>Restore window sizes when they are re-opened.</help> <help>Restore window sizes when they are re-opened.</help>
</parameter> </parameter>
<parameter key="user::appearance::fontsize" label="Font size:" type="number" format="integer" min="1" unit="pt" default="12" notoggle="true" help="Default INIshell font size"> <parameter key="user::appearance::fontsize" label="Font size:" type="number" format="integer" min="1" unit="pt" default="12" notoggle="true" help="Default INIshell font size">
<help>Font size for the main INIshell text elements. Takes effect on next program restart.</help> <help>Font size for the main INIshell text elements. Takes effect on next program restart.</help>
</parameter> </parameter>
<parameter key="user::appearance::preview_mono_font" type="checkbox" caption="Set monospaced font in the Preview window" default="true"> <parameter key="user::appearance::preview_mono_font" type="checkbox" caption="Set monospaced font in the Preview window" default="TRUE">
<help>This is useful to keep the formatting of space-indented INI files.</help> <help>This is useful to keep the formatting of space-indented INI files.</help>
</parameter> </parameter>
<parameter key="user::appearance::darkmode" label="Dark theme:" type="Alternative"> <parameter key="user::appearance::darkmode" label="Dark theme:" type="Alternative">
...@@ -63,7 +63,7 @@ For changes, note that the keys used here are hardcoded in INIshell also. ...@@ -63,7 +63,7 @@ For changes, note that the keys used here are hardcoded in INIshell also.
</parameter> </parameter>
</frame> </frame>
<frame caption="Warning messages" section="settings"> <frame caption="Warning messages" section="settings">
<parameter key="user::inireader::warn_unsaved_ini" caption="Warn on unsaved INI changes" type="checkbox" default="true"> <parameter key="user::inireader::warn_unsaved_ini" caption="Warn on unsaved INI changes" type="checkbox" default="TRUE">
<help>When closing an opened INI file, ask what to do with unsaved changes? If set to &lt;code&gt;false&lt;/code&gt;, unsaved changes will be discarded. This also sets the behavior for unsaved changes in the preview window.</help> <help>When closing an opened INI file, ask what to do with unsaved changes? If set to &lt;code&gt;false&lt;/code&gt;, unsaved changes will be discarded. This also sets the behavior for unsaved changes in the preview window.</help>
</parameter> </parameter>
</frame> </frame>
......
...@@ -520,10 +520,12 @@ void MainWindow::loadHelp(const QString &tab_name, const QString &frame_name) ...@@ -520,10 +520,12 @@ void MainWindow::loadHelp(const QString &tab_name, const QString &frame_name)
if (tab_name.isEmpty()) if (tab_name.isEmpty())
return; return;
const bool success = control_panel_->showTab(tab_name);
#ifdef DEBUG #ifdef DEBUG
const bool success = control_panel_->showTab(tab_name);
if (!success) if (!success)
qDebug() << "Help section does not exist:" << tab_name; qDebug() << "Help section does not exist:" << tab_name;
#else
(void) control_panel_->showTab(tab_name);
#endif //def DEBUG #endif //def DEBUG
auto parent = control_panel_->getSectionScrollarea(tab_name); auto parent = control_panel_->getSectionScrollarea(tab_name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment