mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
gui/moviebrowser.cpp: save return status to check if all gui must be closed
This commit is contained in:
@@ -912,6 +912,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
int CMovieBrowser::exec(const char* path)
|
int CMovieBrowser::exec(const char* path)
|
||||||
{
|
{
|
||||||
bool res = false;
|
bool res = false;
|
||||||
|
menu_ret = menu_return::RETURN_REPAINT;
|
||||||
|
|
||||||
TRACE("[mb] start MovieBrowser\r\n");
|
TRACE("[mb] start MovieBrowser\r\n");
|
||||||
int timeout = -1;
|
int timeout = -1;
|
||||||
@@ -1034,10 +1035,18 @@ int CMovieBrowser::exec(const char* path)
|
|||||||
else if (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites) {
|
else if (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites) {
|
||||||
//FIXME do nothing ?
|
//FIXME do nothing ?
|
||||||
}
|
}
|
||||||
|
else if ( msg == NeutrinoMessages::STANDBY_ON ||
|
||||||
|
msg == NeutrinoMessages::SHUTDOWN ||
|
||||||
|
msg == NeutrinoMessages::SLEEPTIMER)
|
||||||
|
{
|
||||||
|
menu_ret = menu_return::RETURN_EXIT_ALL;
|
||||||
|
loop = false;
|
||||||
|
g_RCInput->postMsg(msg, data);
|
||||||
|
}
|
||||||
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::cancel_all)
|
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::cancel_all)
|
||||||
{
|
{
|
||||||
TRACE("[mb]->exec: getInstance\r\n");
|
TRACE("[mb]->exec: getInstance\r\n");
|
||||||
//res = menu_return::RETURN_EXIT_ALL;
|
menu_ret = menu_return::RETURN_EXIT_ALL;
|
||||||
loop = false;
|
loop = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -303,6 +303,7 @@ class CMovieBrowser : public CMenuTarget
|
|||||||
std::string getScreenshotName(std::string movie);
|
std::string getScreenshotName(std::string movie);
|
||||||
|
|
||||||
//bool restart_mb_timeout;
|
//bool restart_mb_timeout;
|
||||||
|
int menu_ret;
|
||||||
|
|
||||||
public: // Functions //////////////////////////////////////////////////////////7
|
public: // Functions //////////////////////////////////////////////////////////7
|
||||||
CMovieBrowser(const char* path); //P1
|
CMovieBrowser(const char* path); //P1
|
||||||
@@ -324,6 +325,7 @@ class CMovieBrowser : public CMenuTarget
|
|||||||
bool delFile(CFile& file);
|
bool delFile(CFile& file);
|
||||||
bool delFile_vlc(CFile& file);
|
bool delFile_vlc(CFile& file);
|
||||||
bool delFile_std(CFile& file);
|
bool delFile_std(CFile& file);
|
||||||
|
int getMenuRet() { return menu_ret; }
|
||||||
|
|
||||||
private: //Functions
|
private: //Functions
|
||||||
///// MovieBrowser init ///////////////
|
///// MovieBrowser init ///////////////
|
||||||
|
Reference in New Issue
Block a user