浏览代码

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

Luke Pulverenti 9 年之前
父节点
当前提交
3efc6f0005

文件差异内容过多而无法显示
+ 592 - 100
MediaBrowser.Server.Mac/Emby.Server.Mac.csproj


+ 3 - 1
MediaBrowser.Server.Mac/Main.cs

@@ -21,6 +21,8 @@ using Microsoft.Win32;
 using MonoMac.AppKit;
 using MonoMac.Foundation;
 using MonoMac.ObjCRuntime;
+using CommonIO;
+using MediaBrowser.Server.Implementations.Logging;
 
 namespace MediaBrowser.Server.Mac
 {
@@ -89,7 +91,7 @@ namespace MediaBrowser.Server.Mac
 			// Allow all https requests
 			ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
 
-			var fileSystem = new CommonFileSystem(logManager.GetLogger("FileSystem"), false, true);
+			var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, true);
 
 			var nativeApp = new NativeApp();
 

+ 0 - 32
MediaBrowser.Server.Mac/MenuBarIcon.cs

@@ -13,10 +13,7 @@ namespace MediaBrowser.Server.Mac
 	{
 		private NSMenuItem browseMenuItem;
 		private NSMenuItem configureMenuItem;
-		private NSMenuItem developerMenuItem;
 		private NSMenuItem quitMenuItem;
-		private NSMenuItem githubMenuItem;
-		private NSMenuItem apiMenuItem;
 		private NSMenuItem communityMenuItem;
 
 		public static MenuBarIcon Instance;
@@ -71,22 +68,6 @@ namespace MediaBrowser.Server.Mac
 			});
 			menu.AddItem (configureMenuItem);
 
-			developerMenuItem = new NSMenuItem ("Developer Resources");
-			menu.AddItem (developerMenuItem);
-
-			var developerMenu = new NSMenu ();
-			developerMenuItem.Submenu = developerMenu;
-
-			apiMenuItem = new NSMenuItem ("Api Documentation", "a", delegate {
-				ApiDocs (NSApplication.SharedApplication);
-			});
-			developerMenu.AddItem (apiMenuItem);
-
-			githubMenuItem = new NSMenuItem ("Github", "g", delegate {
-				Github (NSApplication.SharedApplication);
-			});
-			developerMenu.AddItem (githubMenuItem);
-
 			communityMenuItem = new NSMenuItem ("Visit Community", "v", delegate {
 				Community (NSApplication.SharedApplication);
 			});
@@ -120,16 +101,6 @@ namespace MediaBrowser.Server.Mac
 			BrowserLauncher.OpenWebClient(MainClass.AppHost, Logger);
 		}
 
-		private void Github(NSObject sender)
-		{
-			BrowserLauncher.OpenGithub(Logger);
-		}
-
-		private void ApiDocs(NSObject sender)
-		{
-			BrowserLauncher.OpenSwagger(MainClass.AppHost, Logger);
-		}
-
 		public void Terminate() 
 		{
 			NSApplication.SharedApplication.InvokeOnMainThread (() => NSApplication.SharedApplication.Terminate(NSApplication.SharedApplication));
@@ -167,9 +138,6 @@ namespace MediaBrowser.Server.Mac
 
 			quitMenuItem.Title = localization.GetLocalizedString("LabelExit");
 			communityMenuItem.Title = localization.GetLocalizedString("LabelVisitCommunity");
-			githubMenuItem.Title = localization.GetLocalizedString("LabelGithub");
-			apiMenuItem.Title = localization.GetLocalizedString("LabelApiDocumentation");
-			developerMenuItem.Title = localization.GetLocalizedString("LabelDeveloperResources");
 			browseMenuItem.Title = localization.GetLocalizedString("LabelBrowseLibrary");
 			configureMenuItem.Title = localization.GetLocalizedString("LabelConfigureMediaBrowser");
 		}

+ 8 - 0
MediaBrowser.Server.Mac/Native/BaseMonoApp.cs

@@ -36,6 +36,14 @@ namespace MediaBrowser.Server.Mac
             }
         }
 
+		public virtual bool SupportsLibraryMonitor
+		{
+			get
+			{
+				return false;
+			}
+		}
+
         /// <summary>
         /// Gets a value indicating whether this instance can self update.
         /// </summary>

部分文件因为文件数量过多而无法显示