Skip to content

Commit

Permalink
Fix title and titlesimple (last commit is not good)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystasly48 committed Apr 20, 2020
1 parent 77fb9f3 commit 2953c40
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Mystter_SendTweet/AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public partial class AboutForm : Form {
}

private void ApplyLocalization() {
this.Text = Information.Title + " - " + Resources.About;
this.Text = Information.TitleSimple + " - " + Resources.About;
verLabelTitle.Text = Resources.Version + ":";
developerLabelTitle.Text = Resources.Developer + ":";
repoLinkLabelTitle.Text = Resources.ProjectRepository + ":";
Expand Down
2 changes: 1 addition & 1 deletion Mystter_SendTweet/AuthBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public partial class AuthBrowser : Form {
}

private void AuthBrowser_Load(object sender, EventArgs e) {
Text = Information.Title + " - " + Resources.OAuth;
Text = Information.TitleSimple + " - " + Resources.OAuth;
webBrowser1.Navigate(URL);
}

Expand Down
12 changes: 6 additions & 6 deletions Mystter_SendTweet/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public partial class Form1 : Form {
accountsComboBox.SelectedItem = item;
settings.SelectedItem = item;
SaveSettings();
Text = item + " / " + Information.Title;
Text = item + " / " + Information.TitleSimple;
}
}

Expand Down Expand Up @@ -300,7 +300,7 @@ public partial class Form1 : Form {
}
tokens = GetAccountTokens(settings.SelectedItem);
accountsComboBox.SelectedItem = settings.SelectedItem;
Text = settings.SelectedItem + " / " + Information.Title;
Text = settings.SelectedItem + " / " + Information.TitleSimple;
} else {
AddAccount();
}
Expand All @@ -315,7 +315,7 @@ public partial class Form1 : Form {
var _tokens = s.GetTokens(form.PIN);
SetAccountTokens(_tokens);
} else if (settings.Twitter.Count == 0) {
var result = MessageBox.Show(Resources.yetAdded1 + NewLine + Resources.yetAdded2, Information.Title, MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
var result = MessageBox.Show(Resources.yetAdded1 + NewLine + Resources.yetAdded2, Information.TitleSimple, MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
switch (result) {
case DialogResult.Yes:
goto START;
Expand All @@ -331,14 +331,14 @@ public partial class Form1 : Form {

private void DeleteLatestTweet() {
var latest = tokens.Account.UpdateProfile().Status;
var msgResult = MessageBox.Show(Resources.deleteComfirm + NewLine + "------------------------------" + NewLine + latest.Text + NewLine + "------------------------------", Information.Title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
var msgResult = MessageBox.Show(Resources.deleteComfirm + NewLine + "------------------------------" + NewLine + latest.Text + NewLine + "------------------------------", Information.TitleSimple, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
switch (msgResult) {
case DialogResult.Yes:
tokens.Statuses.Destroy(latest.Id);
MessageBox.Show(Resources.deleteYes, Information.Title);
MessageBox.Show(Resources.deleteYes, Information.TitleSimple);
break;
case DialogResult.No:
MessageBox.Show(Resources.deleteNo, Information.Title);
MessageBox.Show(Resources.deleteNo, Information.TitleSimple);
break;
}
}
Expand Down
3 changes: 2 additions & 1 deletion Mystter_SendTweet/Information.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Mystter_SendTweet {
public class Information {
public const string Title = "Mystter";
public const string Title = "Mystter - Send Tweet";
public const string TitleSimple = "Mystter";
public const string Version = "1.3.3";
public const string Developer = "Mystasly";
public const string Repository = "https://github.com/mystasly48/Mystter_SendTweet";
Expand Down
1 change: 0 additions & 1 deletion Mystter_SendTweet/Mystter_SendTweet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
<Content Include="Readme.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="TwitterLogo.ico" />
<Content Include="お読みください.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
Expand Down

0 comments on commit 2953c40

Please sign in to comment.