aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-01-03 16:36:32 +1000
committerfuzzard <fuzzard@kodi.tv>2023-01-03 16:52:32 +1000
commit6ca76fbe8c0e4f7990682654d6a02b04e828c1fe (patch)
tree54a1e780d6ff18f65d64e660d984dba39cc52f4c
parent4df087273bcb4c1bed4caf2e6056142c6b540baa (diff)
[android] FileManager add special://logpath to FileManager default list
Adds logpath to Filemanager list to more easily allow filemanager operations to eg copy log file to another destination
-rw-r--r--xbmc/windows/GUIWindowFileManager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/windows/GUIWindowFileManager.cpp b/xbmc/windows/GUIWindowFileManager.cpp
index 4d3f399e95..ef5cd3590e 100644
--- a/xbmc/windows/GUIWindowFileManager.cpp
+++ b/xbmc/windows/GUIWindowFileManager.cpp
@@ -525,6 +525,13 @@ bool CGUIWindowFileManager::Update(int iList, const std::string &strDirectory)
iItem->SetLabelPreformatted(true);
m_vecItems[iList]->Add(iItem);
#endif
+ #ifdef TARGET_ANDROID
+ CFileItemPtr iItem(new CFileItem("special://logpath", true));
+ iItem->SetLabel("Logs");
+ iItem->SetArt("thumb", "DefaultFolder.png");
+ iItem->SetLabelPreformatted(true);
+ m_vecItems[iList]->Add(iItem);
+ #endif
}
// if we have a .tbn file, use itself as the thumb