diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1575,7 +1575,11 @@ iBool isLandscape_App(void) { | |||
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | enum iAppDeviceType deviceType_App(void) { | 1577 | enum iAppDeviceType deviceType_App(void) { |
1578 | #if defined (iPlatformAppleMobile) | 1578 | #if defined (iPlatformMobilePhone) |
1579 | return phone_AppDeviceType; | ||
1580 | #elif defined (iPlatformMobileTablet) | ||
1581 | return tablet_AppDeviceType; | ||
1582 | #elif defined (iPlatformAppleMobile) | ||
1579 | return isPhone_iOS() ? phone_AppDeviceType : tablet_AppDeviceType; | 1583 | return isPhone_iOS() ? phone_AppDeviceType : tablet_AppDeviceType; |
1580 | #else | 1584 | #else |
1581 | return desktop_AppDeviceType; | 1585 | return desktop_AppDeviceType; |
@@ -2472,7 +2476,7 @@ iBool handleCommand_App(const char *cmd) { | |||
2472 | } | 2476 | } |
2473 | else if (equal_Command(cmd, "tabs.close")) { | 2477 | else if (equal_Command(cmd, "tabs.close")) { |
2474 | iWidget *tabs = findWidget_App("doctabs"); | 2478 | iWidget *tabs = findWidget_App("doctabs"); |
2475 | #if defined (iPlatformAppleMobile) | 2479 | #if defined (iPlatformMobile) |
2476 | /* Can't close the last on mobile. */ | 2480 | /* Can't close the last on mobile. */ |
2477 | if (tabCount_Widget(tabs) == 1 && numRoots_Window(get_Window()) == 1) { | 2481 | if (tabCount_Widget(tabs) == 1 && numRoots_Window(get_Window()) == 1) { |
2478 | postCommand_App("navigate.home"); | 2482 | postCommand_App("navigate.home"); |