context menu: move "Scan for new content" to the very bottom for tvshows (same as...
authormontellese <montellese@xbmc.org>
Thu, 14 Nov 2013 12:23:14 +0000 (13:23 +0100)
committermontellese <montellese@xbmc.org>
Sun, 1 Dec 2013 08:30:31 +0000 (09:30 +0100)
xbmc/video/windows/GUIWindowVideoNav.cpp

index e0ef804..98150b2 100644 (file)
@@ -807,13 +807,6 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
       // can we update the database?
       if (CProfilesManager::Get().GetCurrentProfile().canWriteDatabases() || g_passwordManager.bMasterUser)
       {
-        if (node == NODE_TYPE_TITLE_TVSHOWS)
-        {
-          if (g_application.IsVideoScanning())
-            buttons.Add(CONTEXT_BUTTON_STOP_SCANNING, 13353);
-          else
-            buttons.Add(CONTEXT_BUTTON_SCAN, 13349);
-        }
         if (!item->IsPlugin() && !item->IsScript() && !item->IsLiveTV() && !item->IsAddonsPath() &&
             item->GetPath() != "sources://video/" &&
             item->GetPath() != "special://videoplaylists/" &&
@@ -845,6 +838,13 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
         {
           buttons.Add(CONTEXT_BUTTON_EDIT, 16106);
         }
+        if (node == NODE_TYPE_TITLE_TVSHOWS)
+        {
+          if (g_application.IsVideoScanning())
+            buttons.Add(CONTEXT_BUTTON_STOP_SCANNING, 13353);
+          else
+            buttons.Add(CONTEXT_BUTTON_SCAN, 13349);
+        }
 
         if (node == NODE_TYPE_SEASONS && item->m_bIsFolder)
           buttons.Add(CONTEXT_BUTTON_SET_SEASON_ART, 13511);