mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[db] Do not trigger a DATABASE event if db_directory_enable_bypath does
not change the library
This commit is contained in:
parent
1b8b0b2d83
commit
471eb9db46
2
src/db.c
2
src/db.c
@ -3615,7 +3615,7 @@ db_directory_enable_bycookie(uint32_t cookie, char *path)
|
||||
int
|
||||
db_directory_enable_bypath(char *path)
|
||||
{
|
||||
#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q;"
|
||||
#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q AND disabled <> 0;"
|
||||
char *query;
|
||||
int ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user