Notify scan updates only for administrators
This commit is contained in:
@@ -341,7 +341,8 @@ LmsApplication::handleAuthEvent(void)
|
||||
main->bindWidget("player", player);
|
||||
|
||||
// Events from MediaScanner
|
||||
// TODO: only if admin
|
||||
if (CurrentUser()->isAdmin())
|
||||
{
|
||||
enableUpdates(true);
|
||||
std::string sessionId = this->sessionId();
|
||||
_scanner.scanComplete().connect(std::bind([=] (Scanner::MediaScanner::Stats stats)
|
||||
@@ -356,9 +357,8 @@ LmsApplication::handleAuthEvent(void)
|
||||
.arg(stats.nbErrors()));
|
||||
triggerUpdate();
|
||||
});
|
||||
// notify("TEST");
|
||||
}, std::placeholders::_1));
|
||||
|
||||
}
|
||||
|
||||
internalPathChanged().connect(std::bind([=]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user