Skip to content

Commit

Permalink
Merge pull request #35 from ua0lnj/master
Browse files Browse the repository at this point in the history
Update to 1.5.2.
  • Loading branch information
ua0lnj authored Jan 13, 2024
2 parents 08e32e0 + e282b07 commit ac80df6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion filebrowser.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ eOSState cMpvFilebrowser::ProcessKey(eKeys Key)
{
int res;
res = PlayListCreate(newPath, NULL);
ShowDirectory(currentDir);
if (res != -1)
{
Skins.Message(mtError, tr("Not empty directory, can't remove!"));
Expand All @@ -281,21 +282,36 @@ eOSState cMpvFilebrowser::ProcessKey(eKeys Key)
if (res)
{
Skins.Message(mtError, tr("Unable to remove directory!"));
ShowDirectory(currentDir);
}
else
{
State = cOsdMenu::ProcessKey(kUp);
item = (cMpvFilebrowserMenuItem *) Get(Current());
if (!item) break;
currentItem = item->Text();
ShowDirectory(currentDir);
return State;
}
}
}
ShowDirectory(currentDir);
}
else
{
if (Skins.Message(mtWarning, tr("Remove file?"), 5) == kOk)
{
int res;
res = remove(newPath.c_str());
ShowDirectory(currentDir);
if (res)
{
Skins.Message(mtError, tr("Unable to remove file!"));
}
else
{
State = cOsdMenu::ProcessKey(kUp);
return State;
}
}
}
return osContinue;
Expand Down
2 changes: 1 addition & 1 deletion mpv.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "menu_options.h"
#include "mpv_service.h"

static const char *VERSION = "1.5.0"
static const char *VERSION = "1.5.2"
#ifdef GIT_REV
"-GIT" GIT_REV
#endif
Expand Down

0 comments on commit ac80df6

Please sign in to comment.