CC-3561: Add button to automatically rescan watched folders.
-done
This commit is contained in:
parent
dbd6b7444b
commit
295a8ea5fe
4 changed files with 25 additions and 0 deletions
|
@ -350,6 +350,15 @@ class PreferenceController extends Zend_Controller_Action
|
|||
|
||||
$this->view->subform = $watched_dirs_form->render();
|
||||
}
|
||||
|
||||
public function rescanWatchDirectoryAction()
|
||||
{
|
||||
$dirs = Application_Model_MusicDir::getWatchedDirs();
|
||||
foreach ($dirs as $dir) {
|
||||
$res = Application_Model_MusicDir::addWatchedDir($dir->getDirectory());
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
public function removeWatchDirectoryAction()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue