add info button in menu

pull/23/head
JuanJakobo 2021-01-10 18:29:37 +01:00
parent 77521aeeed
commit af6ff51edc
3 changed files with 12 additions and 4 deletions

View File

@ -114,8 +114,14 @@ void EventHandler::mainMenuHandler(const int index)
FullUpdate();
break;
}
//Exit
//Info
case 104:
{
int dialogResult = DialogSynchro(ICON_INFORMATION, "Information", "Version 0.5 \n For support please open a ticket at https://github.com/JuanJakobo/Pocketbook-Nextcloud-Client/issues","","", "Close");
break;
}
//Exit
case 105:
CloseApp();
break;
default:

View File

@ -59,16 +59,17 @@ int MenuHandler::createMenu(bool loggedIn, bool workOffline, iv_menuhandler hand
{loggedIn ? ITEM_ACTIVE : ITEM_HIDDEN, 102, "Make startfolder", NULL},
{loggedIn ? ITEM_ACTIVE : ITEM_HIDDEN, 103, "Logout", NULL},
//show always
{ITEM_ACTIVE, 104, "Exit"},
{ITEM_ACTIVE, 104, "Info"},
{ITEM_ACTIVE, 105, "Exit"},
{0, 0, NULL, NULL}};
if (loggedIn)
{
mainMenu[2].type = ITEM_ACTIVE;
mainMenu[3].type = ITEM_ACTIVE;
}
else
{
mainMenu[1].type = ITEM_ACTIVE;
mainMenu[2].type = ITEM_ACTIVE;
}
OpenMenu(mainMenu, 0, _panelMenuBeginX, _panelMenuBeginY, handler);

View File

@ -44,6 +44,7 @@ public:
*
* @param localPath path where the file is placed
* @param FileState state of the file
*/
Item(const string &localPath, FileState state);
/**