OSDN Git Service

ApplicationSettings.AllowSendErrorReportByDM をconstからstatic readonlyに変更
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 1 Nov 2015 05:50:31 +0000 (14:50 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 2 Nov 2015 12:59:12 +0000 (21:59 +0900)
OpenTween/ApplicationSettings.cs
OpenTween/SendErrorReportForm.cs

index f9b346f..0028429 100644 (file)
@@ -54,7 +54,7 @@ namespace OpenTween
         /// <remarks>
         /// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります
         /// </remarks>
-        public const bool AllowSendErrorReportByDM = true;
+        public static readonly bool AllowSendErrorReportByDM = true;
 
         //=====================================================================
         // Web サイト
index 7c55669..a33c7c4 100644 (file)
@@ -185,10 +185,8 @@ namespace OpenTween
 
         private bool CheckDmAvailable()
         {
-#pragma warning disable CS0162
             if (!ApplicationSettings.AllowSendErrorReportByDM)
                 return false;
-#pragma warning restore CS0162
 
             if (this.tw == null || !this.tw.AccessLevel.HasFlag(TwitterApiAccessLevel.DirectMessage))
                 return false;