This repository was archived by the owner on Jun 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3838 <summary >Window height</summary >
3939 <description >Stores the windows last height</description >
4040 </key >
41+ <key name =" last-vala" type =" s" >
42+ <default >"https://valadoc.org"</default >
43+ <summary >Last visited valadoc page</summary >
44+ <description >Stores the address of the last visisted valadoc page</description >
45+ </key >
46+ <key name =" last-dev" type =" s" >
47+ <default >"https://devdocs.io"</default >
48+ <summary >Last visited devdocs page</summary >
49+ <description >Stores the address of the last visisted devdocs page</description >
50+ </key >
4151 </schema >
4252</schemalist >
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ public class App : Gtk.Application {
5858 var online = check_online ();
5959 var vala = new WebView ();
6060 if (online) {
61- vala. load_uri (" https://valadoc.org " );
61+ vala. load_uri (user_settings . get_string ( " last-vala " ) );
6262 }
6363
6464 var dev = new WebView .with_context (context);
6565 first_run (dev);
6666 set_appcache (dev, online);
67- dev. load_uri (" https://devdocs.io " );
67+ dev. load_uri (user_settings . get_string ( " last-dev " ) );
6868
6969 stack. add_titled (vala, " vala" , " Valadoc" );
7070 stack. add_titled (dev, " dev" , " DevDocs" );
@@ -121,6 +121,8 @@ public class App : Gtk.Application {
121121 user_settings. set_int (" window-y" , current_y);
122122 user_settings. set_int (" width" , width);
123123 user_settings. set_int (" height" , height);
124+ user_settings. set_string (" last-dev" , dev. uri);
125+ user_settings. set_string (" last-vala" , vala. uri);
124126 return false ;
125127 });
126128
You can’t perform that action at this time.
0 commit comments