Skip to content

Commit

Permalink
revise last bug fix ; convert current release link into patch notes
Browse files Browse the repository at this point in the history
  • Loading branch information
imak101 committed Aug 29, 2021
1 parent 3864c47 commit 36754c8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 4 additions & 3 deletions Form/Configure/Form_Configure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ public Form_Configure(ref PluginSettings settings, ref Plugin.MusicBeeApiInterfa

private async void Form_Configure_Load(object sender, EventArgs e)
{
label_versionInfo.Text = await new Form_Updater().ConfigureFormLabelHandler();

if (_settings.GetFromKey("username") == string.Empty || _settings.GetFromKey("pfpPath") == string.Empty)
{
return;
goto FetchVersion;
}

_filePath = _settings.GetFromKey("pfpPath");
Expand All @@ -44,6 +42,9 @@ private async void Form_Configure_Load(object sender, EventArgs e)
textbox_username.Text = _username;

picbox_pfp.Image = ImageHandler();

FetchVersion:
label_versionInfo.Text = await new Form_Updater().ConfigureFormLabelHandler();
}

private void button_submit_Click(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public PluginInfo Initialise(IntPtr apiInterfacePtr)
_about.Type = PluginType.PanelView;
_about.VersionMajor = 0; // your plugin version
_about.VersionMinor = 2;
_about.Revision = 2;
_about.Revision = 3;
_about.MinInterfaceVersion = MinInterfaceVersion;
_about.MinApiRevision = MinApiRevision;
_about.ReceiveNotifications = (ReceiveNotificationFlags.PlayerEvents | ReceiveNotificationFlags.TagEvents);
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.2")]
[assembly: AssemblyFileVersion("0.2.2")]
[assembly: AssemblyFileVersion("0.2.3")]
6 changes: 3 additions & 3 deletions Updater/Form/Form_Updater.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Updater/Form/Form_Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private async void Form_Updater_Load(object sender, EventArgs e)

VersionCompare(ref _GHRelease);

if (!_releaseFailed) link_GHCurrent.Text = $"Patch Notes for {_GHRelease.TagName}";

if (!_versionSame && !_releaseFailed) button_update.Enabled = true;
}

Expand Down

0 comments on commit 36754c8

Please sign in to comment.