• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

OpenTweenのfork


Commit MetaInfo

修訂6b752853f9af7411a2d639b96b984e3110ea5102 (tree)
時間2012-02-18 23:19:53
作者kiri_feather <kiri_feather@user...>
CommiterKimura Youichi

Log Message

複垢ユーザー未選択問題対処その2

Change Summary

差異

--- a/Tween/AppendSettingDialog.vb
+++ b/Tween/AppendSettingDialog.vb
@@ -206,8 +206,12 @@ Public Class AppendSettingDialog
206206 Next
207207 If Me.AuthUserCombo.SelectedIndex > -1 Then
208208 For Each u In Me.UserAccounts
209- If u.UserId = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).UserId Then
209+ If u.Username.ToLower = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).Username.ToLower Then
210210 tw.Initialize(u.Token, u.TokenSecret, u.Username, u.UserId)
211+ If u.UserId = 0 Then
212+ tw.VerifyCredentials()
213+ u.UserId = tw.UserId
214+ End If
211215 Google.GASender.GetInstance.SessionFirst = u.GAFirst
212216 Google.GASender.GetInstance.SessionLast = u.GALast
213217 Exit For
--- a/Tween/Tween.vb
+++ b/Tween/Tween.vb
@@ -1149,6 +1149,12 @@ Public Class TweenMain
11491149 End If
11501150 Next
11511151 End If
1152+ For Each ua In SettingDialog.UserAccounts
1153+ If ua.UserId = 0 AndAlso ua.Username.ToLower = tw.Username.ToLower Then
1154+ ua.UserId = tw.UserId
1155+ Exit For
1156+ End If
1157+ Next
11521158 Google.GASender.GetInstance().TrackPage("/home_timeline", tw.UserId)
11531159 Google.GASender.GetInstance().TrackEventWithCategory("post", "start", tw.UserId)
11541160 End Sub