mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
xbmc: do not remount non optical devices on DeviceChanged event
This commit is contained in:
parent
686de88c37
commit
2c7ebd6246
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/xbmc/storage/linux/UDisksProvider.cpp b/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
index 6afc1a8..c940e69 100644
|
||||||
|
--- a/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
+++ b/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
@@ -356,7 +356,7 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
|
||||||
|
{
|
||||||
|
bool mounted = device->m_isMounted;
|
||||||
|
device->Update();
|
||||||
|
- if (g_advancedSettings.m_handleMounting)
|
||||||
|
+ if (g_advancedSettings.m_handleMounting && device->m_isOptical)
|
||||||
|
device->Mount();
|
||||||
|
if (!mounted && device->m_isMounted && callback)
|
||||||
|
callback->OnStorageAdded(device->m_Label, device->m_MountPath);
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/xbmc/storage/linux/UDisksProvider.cpp b/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
index 6afc1a8..c940e69 100644
|
||||||
|
--- a/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
+++ b/xbmc/storage/linux/UDisksProvider.cpp
|
||||||
|
@@ -356,7 +356,7 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
|
||||||
|
{
|
||||||
|
bool mounted = device->m_isMounted;
|
||||||
|
device->Update();
|
||||||
|
- if (g_advancedSettings.m_handleMounting)
|
||||||
|
+ if (g_advancedSettings.m_handleMounting && device->m_isOptical)
|
||||||
|
device->Mount();
|
||||||
|
if (!mounted && device->m_isMounted && callback)
|
||||||
|
callback->OnStorageAdded(device->m_Label, device->m_MountPath);
|
Loading…
x
Reference in New Issue
Block a user