OSDN Git Service

API v2 の使用を無効化
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 22 Jan 2023 11:01:48 +0000 (20:01 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 22 Jan 2023 11:19:42 +0000 (20:19 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/Setting/Panel/ActionPanel.cs
OpenTween/Setting/SettingCommon.cs

index 149295a..dc16ead 100644 (file)
@@ -2,6 +2,7 @@
 
 ==== Unreleased
  * NEW: アカウント追加時にAPIキーを指定可能になりました
+ * CHG: API v2 の使用を設定状態に関わらず無効化しました
  * FIX: 同一の画像を複数枚添付する時にプレビュー画像の表示がエラーになる不具合を修正
 
 ==== Ver 3.2.0(2023/01/20)
index 1961884..cfd1f83 100644 (file)
@@ -48,7 +48,10 @@ namespace OpenTween.Setting.Panel
             this.BrowserPathText.Text = settingLocal.BrowserPath;
             this.CheckCloseToExit.Checked = settingCommon.CloseToExit;
             this.CheckMinimizeToTray.Checked = settingCommon.MinimizeToTray;
-            this.CheckEnableTwitterV2Api.Checked = settingCommon.EnableTwitterV2Api;
+
+            this.CheckEnableTwitterV2Api.Enabled = false;
+            this.CheckEnableTwitterV2Api.Checked = false;
+
             this.CheckFavRestrict.Checked = settingCommon.RestrictFavCheck;
             this.chkReadOwnPost.Checked = settingCommon.ReadOwnPost;
             this.CheckReadOldPosts.Checked = settingCommon.ReadOldPosts;
@@ -91,7 +94,6 @@ namespace OpenTween.Setting.Panel
             settingLocal.BrowserPath = this.BrowserPathText.Text.Trim();
             settingCommon.CloseToExit = this.CheckCloseToExit.Checked;
             settingCommon.MinimizeToTray = this.CheckMinimizeToTray.Checked;
-            settingCommon.EnableTwitterV2Api = this.CheckEnableTwitterV2Api.Checked;
             settingCommon.RestrictFavCheck = this.CheckFavRestrict.Checked;
             settingCommon.ReadOwnPost = this.chkReadOwnPost.Checked;
             settingCommon.ReadOldPosts = this.CheckReadOldPosts.Checked;
index ed6ae8e..4eca679 100644 (file)
@@ -169,7 +169,8 @@ namespace OpenTween
         /// <summary>
         /// Twitter API v2 の使用を有効にする
         /// </summary>
-        public bool EnableTwitterV2Api { get; set; } = true;
+        [XmlIgnore]
+        public bool EnableTwitterV2Api => false;
 
         public bool RestrictFavCheck = false;
         public bool AlwaysTop = false;