diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 12:36:42 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 12:36:42 +0300 |
commit | b7f40b587087ce4d594ef10af509a5ab92f20466 (patch) | |
tree | 9fc55a0409cb8ad9d038d6bd02e07d7aebe75506 /src/ui/util.c | |
parent | 77ecd8cb2fec2c61f37f4c5561b18fad6fe6137a (diff) |
Preferences: Memory size limit
Memory used for RAM storage of media along with navigation history so it can be restored instantly.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 6eef544b..6c6e62a5 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1834,6 +1834,17 @@ iWidget *makePreferences_Widget(void) { | |||
1834 | resizeToParentHeight_WidgetFlag); | 1834 | resizeToParentHeight_WidgetFlag); |
1835 | setContentPadding_InputWidget(cache, 0, width_Widget(unit) - 4 * gap_UI); | 1835 | setContentPadding_InputWidget(cache, 0, width_Widget(unit) - 4 * gap_UI); |
1836 | } | 1836 | } |
1837 | /* Memory size. */ { | ||
1838 | iInputWidget *mem = new_InputWidget(4); | ||
1839 | setSelectAllOnFocus_InputWidget(mem, iTrue); | ||
1840 | addPrefsInputWithHeading_(headings, values, "prefs.memorysize", iClob(mem)); | ||
1841 | iWidget *unit = | ||
1842 | addChildFlags_Widget(as_Widget(mem), | ||
1843 | iClob(new_LabelWidget("${mb}", NULL)), | ||
1844 | frameless_WidgetFlag | moveToParentRightEdge_WidgetFlag | | ||
1845 | resizeToParentHeight_WidgetFlag); | ||
1846 | setContentPadding_InputWidget(mem, 0, width_Widget(unit) - 4 * gap_UI); | ||
1847 | } | ||
1837 | makeTwoColumnHeading_("${heading.prefs.certs}", headings, values); | 1848 | makeTwoColumnHeading_("${heading.prefs.certs}", headings, values); |
1838 | addPrefsInputWithHeading_(headings, values, "prefs.ca.file", iClob(new_InputWidget(0))); | 1849 | addPrefsInputWithHeading_(headings, values, "prefs.ca.file", iClob(new_InputWidget(0))); |
1839 | addPrefsInputWithHeading_(headings, values, "prefs.ca.path", iClob(new_InputWidget(0))); | 1850 | addPrefsInputWithHeading_(headings, values, "prefs.ca.path", iClob(new_InputWidget(0))); |