mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
RISC OS: Ensure core's hotlist_init is called on startup.
Until the core hotlist_init is called, it is impossible to add pages to the hotlist. This means we need to ensure it is called on startup, rather than when first showing the hotlist.
This commit is contained in:
parent
49b1b0b3a5
commit
743637a8d2
@ -554,24 +554,25 @@ nserror ro_gui_hotlist_present(void)
|
||||
error->errmess);
|
||||
}
|
||||
|
||||
res = ro_hotlist_init();
|
||||
if (res == NSERROR_OK) {
|
||||
LOG("Presenting");
|
||||
ro_gui_dialog_open_top(hotlist_window->core.wh,
|
||||
hotlist_window->core.toolbar,
|
||||
600, 800);
|
||||
} else {
|
||||
LOG("Failed presenting code %d", res);
|
||||
}
|
||||
LOG("Presenting hotlist");
|
||||
ro_gui_dialog_open_top(hotlist_window->core.wh,
|
||||
hotlist_window->core.toolbar,
|
||||
600, 800);
|
||||
|
||||
return res;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
/* exported interface documented in riscos/hotlist.h */
|
||||
void ro_gui_hotlist_initialise(void)
|
||||
{
|
||||
nserror res;
|
||||
dialog_hotlist_template = ro_gui_dialog_load_template("tree");
|
||||
|
||||
res = ro_hotlist_init();
|
||||
if (res != NSERROR_OK) {
|
||||
LOG("Failed initialising hotlist %d", res);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user