浏览代码

hide restart if not specified

Luke Pulverenti 9 年之前
父节点
当前提交
9fcdcc6eae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      MediaBrowser.Server.Mono/Native/NativeApp.cs

+ 2 - 1
MediaBrowser.Server.Mono/Native/NativeApp.cs

@@ -28,7 +28,8 @@ namespace MediaBrowser.Server.Mono.Native
         {
             get
             {
-                return true;
+                // A restart script must be provided
+                return StartupOptions.ContainsOption("-restartpath");
             }
         }