summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-05-16 17:26:32 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-05-16 17:26:32 +0100
commit8aa8791f5ce485323618244b84b47c71c792fe04 (patch)
tree65c918c2c3b5507c7e7cb9b51f9225b7c8c2cb06
parent982fc516cc1741601ba13fb9ca3f2706e3fc1634 (diff)
downloadnetsurf-8aa8791f5ce485323618244b84b47c71c792fe04.tar.gz
netsurf-8aa8791f5ce485323618244b84b47c71c792fe04.tar.bz2
Add disc cache size to settings UI
-rwxr-xr-xamiga/gui_options.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c
index 877ff0955..cef227816 100755
--- a/amiga/gui_options.c
+++ b/amiga/gui_options.c
@@ -299,7 +299,7 @@ void ami_gui_opts_setup(void)
gadlab[GID_OPTS_FONT_MINSIZE] = (char *)ami_utf8_easy((char *)messages_get("Minimum"));
gadlab[GID_OPTS_FONT_ANTIALIASING] = (char *)ami_utf8_easy((char *)messages_get("FontAntialiasing"));
gadlab[GID_OPTS_CACHE_MEM] = (char *)ami_utf8_easy((char *)messages_get("Size"));
- gadlab[GID_OPTS_CACHE_DISC] = (char *)ami_utf8_easy((char *)messages_get("Duration"));
+ gadlab[GID_OPTS_CACHE_DISC] = (char *)ami_utf8_easy((char *)messages_get("Size"));
gadlab[GID_OPTS_OVERWRITE] = (char *)ami_utf8_easy((char *)messages_get("ConfirmOverwrite"));
gadlab[GID_OPTS_NOTIFY] = (char *)ami_utf8_easy((char *)messages_get("DownloadNotify"));
gadlab[GID_OPTS_DLDIR] = (char *)ami_utf8_easy((char *)messages_get("DownloadDir"));
@@ -1157,15 +1157,14 @@ void ami_gui_opts_open(void)
LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_DISC] = IntegerObject,
GA_ID, GID_OPTS_CACHE_DISC,
GA_RelVerify, TRUE,
- GA_Disabled, TRUE,
- INTEGER_Number, nsoption_int(disc_cache_age),
+ INTEGER_Number, nsoption_int(disc_cache_size) / 1048576,
INTEGER_Minimum, 0,
INTEGER_Maximum, 366,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
- LABEL_Text, gadlab[LAB_OPTS_DAYS],
+ LABEL_Text, gadlab[LAB_OPTS_MB],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
@@ -1751,7 +1750,8 @@ void ami_gui_opts_use(bool save)
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_MEM],(ULONG *)&nsoption_int(memory_cache_size));
nsoption_set_int(memory_cache_size, nsoption_int(memory_cache_size) * 1048576);
- GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_int(disc_cache_age));
+ GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_int(disc_cache_size));
+ nsoption_set_int(disc_cache_size, nsoption_int(disc_cache_size) * 1048576);
GetAttr(GA_Selected,gow->objects[GID_OPTS_OVERWRITE],(ULONG *)&data);
if (data) {