2
0
Эх сурвалжийг харах

removed developer tool setting

Luke Pulverenti 11 жил өмнө
parent
commit
cf094f9a6d

+ 0 - 10
MediaBrowser.Model/Configuration/ServerConfiguration.cs

@@ -174,12 +174,6 @@ namespace MediaBrowser.Model.Configuration
         /// <value>The file watcher delay.</value>
         /// <value>The file watcher delay.</value>
         public int FileWatcherDelay { get; set; }
         public int FileWatcherDelay { get; set; }
 
 
-        /// <summary>
-        /// Gets or sets a value indicating whether [enable developer tools].
-        /// </summary>
-        /// <value><c>true</c> if [enable developer tools]; otherwise, <c>false</c>.</value>
-        public bool EnableDeveloperTools { get; set; }
-
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether [enable dashboard response caching].
         /// Gets or sets a value indicating whether [enable dashboard response caching].
         /// Allows potential contributors without visual studio to modify production dashboard code and test changes.
         /// Allows potential contributors without visual studio to modify production dashboard code and test changes.
@@ -255,10 +249,6 @@ namespace MediaBrowser.Model.Configuration
             EnableEpisodeChapterImageExtraction = false;
             EnableEpisodeChapterImageExtraction = false;
             EnableOtherVideoChapterImageExtraction = false;
             EnableOtherVideoChapterImageExtraction = false;
 
 
-#if (DEBUG)
-            EnableDeveloperTools = true;
-#endif
-
             MinResumePct = 5;
             MinResumePct = 5;
             MaxResumePct = 90;
             MaxResumePct = 90;
             MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds);
             MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds);

+ 4 - 8
MediaBrowser.ServerApplication/MainWindow.xaml.cs

@@ -133,14 +133,10 @@ namespace MediaBrowser.ServerApplication
         {
         {
             Dispatcher.InvokeAsync(() =>
             Dispatcher.InvokeAsync(() =>
             {
             {
-                var developerToolsVisibility = _configurationManager.Configuration.EnableDeveloperTools
-                                                   ? Visibility.Visible
-                                                   : Visibility.Collapsed;
-
-                separatorDeveloperTools.Visibility = developerToolsVisibility;
-                cmdReloadServer.Visibility = developerToolsVisibility;
-                cmOpenExplorer.Visibility = developerToolsVisibility;
-                cmShowLogWindow.Visibility = developerToolsVisibility;
+                separatorDeveloperTools.Visibility = Visibility.Visible;
+                cmdReloadServer.Visibility = Visibility.Visible;
+                cmOpenExplorer.Visibility = Visibility.Visible;
+                cmShowLogWindow.Visibility = Visibility.Visible;
             });
             });
         }
         }