add context menu 2

pull/23/head
JuanJakobo 2021-06-04 21:24:45 +02:00
parent 4c8ad2aee0
commit 2a6fd55e2e
2 changed files with 15 additions and 1 deletions

View File

@ -30,7 +30,6 @@ EventHandler::EventHandler()
if (iv_access(NEXTCLOUD_CONFIG_PATH.c_str(), W_OK) == 0) if (iv_access(NEXTCLOUD_CONFIG_PATH.c_str(), W_OK) == 0)
{ {
_menu.drawLoadingScreen();
if (_nextcloud.login()) if (_nextcloud.login())
{ {
_listView = std::unique_ptr<ListView>(new ListView(_menu.getContentRect(), _nextcloud.getItems())); _listView = std::unique_ptr<ListView>(new ListView(_menu.getContentRect(), _nextcloud.getItems()));

View File

@ -60,6 +60,21 @@ private:
*/ */
void mainMenuHandler(const int index); void mainMenuHandler(const int index);
/**
* Function needed to call C function, redirects to real function
*
* @param index int of the menu that is set
*/
static void contextMenuHandlerStatic(const int index);
/**
* Handlescontext menu events and redirects them
*
* @param index int of the menu that is set
*/
void contextMenuHandler(const int index);
/** /**
* Handles pointer Events * Handles pointer Events
* *