From: Kimura Youichi Date: Sun, 1 Nov 2015 05:50:31 +0000 (+0900) Subject: ApplicationSettings.AllowSendErrorReportByDM をconstからstatic readonlyに変更 X-Git-Tag: OpenTween_v1.3.0~69 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;ds=sidebyside;h=387fef4a75fb157e6942eecc90c39f226a99ae31;p=opentween%2Fopen-tween.git ApplicationSettings.AllowSendErrorReportByDM をconstからstatic readonlyに変更 --- 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;