diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2153,7 +2153,7 @@ iBool handleCommand_App(const char *cmd) { | |||
2153 | iWidget *tabs = findWidget_App("doctabs"); | 2153 | iWidget *tabs = findWidget_App("doctabs"); |
2154 | #if defined (iPlatformAppleMobile) | 2154 | #if defined (iPlatformAppleMobile) |
2155 | /* Can't close the last on mobile. */ | 2155 | /* Can't close the last on mobile. */ |
2156 | if (tabCount_Widget(tabs) == 1) { | 2156 | if (tabCount_Widget(tabs) == 1 && numRoots_Window(get_Window()) == 1) { |
2157 | postCommand_App("navigate.home"); | 2157 | postCommand_App("navigate.home"); |
2158 | return iTrue; | 2158 | return iTrue; |
2159 | } | 2159 | } |
@@ -2331,7 +2331,9 @@ iBool handleCommand_App(const char *cmd) { | |||
2331 | bookmarkTitle_DocumentWidget(doc), | 2331 | bookmarkTitle_DocumentWidget(doc), |
2332 | siteIcon_GmDocument(document_DocumentWidget(doc))); | 2332 | siteIcon_GmDocument(document_DocumentWidget(doc))); |
2333 | } | 2333 | } |
2334 | postCommand_App("focus.set id:bmed.title"); | 2334 | if (deviceType_App() == desktop_AppDeviceType) { |
2335 | postCommand_App("focus.set id:bmed.title"); | ||
2336 | } | ||
2335 | return iTrue; | 2337 | return iTrue; |
2336 | } | 2338 | } |
2337 | else if (equal_Command(cmd, "feeds.subscribe")) { | 2339 | else if (equal_Command(cmd, "feeds.subscribe")) { |