browser: refresh browser on database update properly

This commit is contained in:
Andrzej Rybczak
2015-04-12 19:17:54 +02:00
parent d1528ffc71
commit e30149d04c
8 changed files with 80 additions and 35 deletions

View File

@@ -718,10 +718,9 @@ void DeleteBrowserItems::run()
);
}
if (myBrowser->isLocal())
myBrowser->getDirectory(myBrowser->currentDirectory());
else
if (!myBrowser->isLocal())
Mpd.UpdateDirectory(myBrowser->currentDirectory());
myBrowser->requestUpdate();
}
bool DeleteStoredPlaylist::canBeRun() const
@@ -1443,7 +1442,7 @@ void EditDirectoryName::run()
Statusbar::printf(msg, wideShorten(new_dir, COLS-const_strlen(msg)));
if (!myBrowser->isLocal())
Mpd.UpdateDirectory(getSharedDirectory(old_dir, new_dir));
myBrowser->getDirectory(myBrowser->currentDirectory());
myBrowser->requestUpdate();
}
else
{