From 387fef4a75fb157e6942eecc90c39f226a99ae31 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sun, 1 Nov 2015 14:50:31 +0900 Subject: [PATCH] =?utf8?q?ApplicationSettings.AllowSendErrorReportByDM=20?= =?utf8?q?=E3=82=92const=E3=81=8B=E3=82=89static=20readonly=E3=81=AB?= =?utf8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween/ApplicationSettings.cs | 2 +- OpenTween/SendErrorReportForm.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenTween/ApplicationSettings.cs b/OpenTween/ApplicationSettings.cs index f9b346fb..00284293 100644 --- a/OpenTween/ApplicationSettings.cs +++ b/OpenTween/ApplicationSettings.cs @@ -54,7 +54,7 @@ namespace OpenTween /// /// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります /// - public const bool AllowSendErrorReportByDM = true; + public static readonly bool AllowSendErrorReportByDM = true; //===================================================================== // Web サイト diff --git a/OpenTween/SendErrorReportForm.cs b/OpenTween/SendErrorReportForm.cs index 7c55669f..a33c7c41 100644 --- a/OpenTween/SendErrorReportForm.cs +++ b/OpenTween/SendErrorReportForm.cs @@ -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; -- 2.11.0