diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-10 09:29:46 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-10 09:29:46 +0300 |
commit | 168ded2245101126e7954887ddc04b80f211e917 (patch) | |
tree | 69aacb221ef8093031a06fdc9c25054aca929192 /src/app.c | |
parent | b85471a5b84f0837611fb47be35ee713139f702f (diff) |
Mobile: Revised more dialogs
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -248,7 +248,9 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
248 | appendFormat_String(str, "proxy.gemini address:%s\n", cstr_String(&d->prefs.geminiProxy)); | 248 | appendFormat_String(str, "proxy.gemini address:%s\n", cstr_String(&d->prefs.geminiProxy)); |
249 | appendFormat_String(str, "proxy.gopher address:%s\n", cstr_String(&d->prefs.gopherProxy)); | 249 | appendFormat_String(str, "proxy.gopher address:%s\n", cstr_String(&d->prefs.gopherProxy)); |
250 | appendFormat_String(str, "proxy.http address:%s\n", cstr_String(&d->prefs.httpProxy)); | 250 | appendFormat_String(str, "proxy.http address:%s\n", cstr_String(&d->prefs.httpProxy)); |
251 | #if defined (LAGRANGE_ENABLE_DOWNLOAD_EDIT) | ||
251 | appendFormat_String(str, "downloads path:%s\n", cstr_String(&d->prefs.downloadDir)); | 252 | appendFormat_String(str, "downloads path:%s\n", cstr_String(&d->prefs.downloadDir)); |
253 | #endif | ||
252 | appendFormat_String(str, "searchurl address:%s\n", cstr_String(&d->prefs.searchUrl)); | 254 | appendFormat_String(str, "searchurl address:%s\n", cstr_String(&d->prefs.searchUrl)); |
253 | appendFormat_String(str, "translation.languages from:%d to:%d\n", d->prefs.langFrom, d->prefs.langTo); | 255 | appendFormat_String(str, "translation.languages from:%d to:%d\n", d->prefs.langFrom, d->prefs.langTo); |
254 | return str; | 256 | return str; |
@@ -2331,10 +2333,12 @@ iBool handleCommand_App(const char *cmd) { | |||
2331 | setCStr_String(&d->prefs.httpProxy, suffixPtr_Command(cmd, "address")); | 2333 | setCStr_String(&d->prefs.httpProxy, suffixPtr_Command(cmd, "address")); |
2332 | return iTrue; | 2334 | return iTrue; |
2333 | } | 2335 | } |
2336 | #if defined (LAGRANGE_ENABLE_DOWNLOAD_EDIT) | ||
2334 | else if (equal_Command(cmd, "downloads")) { | 2337 | else if (equal_Command(cmd, "downloads")) { |
2335 | setCStr_String(&d->prefs.downloadDir, suffixPtr_Command(cmd, "path")); | 2338 | setCStr_String(&d->prefs.downloadDir, suffixPtr_Command(cmd, "path")); |
2336 | return iTrue; | 2339 | return iTrue; |
2337 | } | 2340 | } |
2341 | #endif | ||
2338 | else if (equal_Command(cmd, "downloads.open")) { | 2342 | else if (equal_Command(cmd, "downloads.open")) { |
2339 | postCommandf_App("open url:%s", cstrCollect_String(makeFileUrl_String(downloadDir_App()))); | 2343 | postCommandf_App("open url:%s", cstrCollect_String(makeFileUrl_String(downloadDir_App()))); |
2340 | return iTrue; | 2344 | return iTrue; |