Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 40262c7

Browse files
committed
Fix spelling of "candidate"
1 parent aebfb31 commit 40262c7

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

Pinto/MainForm.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,12 @@ public MessageForm GetMessageFormFromReceiverName(string name, bool doNotCreate
373373
private async void MainForm_Load(object sender, EventArgs e)
374374
{
375375
Program.Console.WriteMessage("[General] Performing first time initialization...");
376-
377376
OnLogout(true);
378-
isPortable = true;
377+
379378
if (File.Exists(".IS_PORTABLE_CHECK"))
380379
isPortable = true;
381380

382-
if (Settings.AutoCheckForUpdates && !isPortable)
381+
if (Settings.AutoCheckForUpdates && !isPortable && !Program.IS_RELEASE_CANDIDATE)
383382
await CheckForUpdates(false);
384383

385384
Program.Scripts.ForEach((IPintoScript script) => { script.OnPintoInit(); });
@@ -589,7 +588,14 @@ public async Task CheckForUpdates(bool showLatestMessage)
589588
if (isPortable)
590589
{
591590
MsgBox.Show(this, "Checking for updates is not available on the portable version!",
592-
"Updates Unavailable", MsgBoxIconType.WARNING, true);
591+
"Updates Unavailable", MsgBoxIconType.ERROR, true);
592+
return;
593+
}
594+
595+
if (Program.IS_RELEASE_CANDIDATE)
596+
{
597+
MsgBox.Show(this, "Checking for updates on a release candidate build is not available!",
598+
"Updates Unavailable", MsgBoxIconType.ERROR, true);
593599
return;
594600
}
595601

Pinto/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ public static class Program
1717
{
1818
// Constants
1919
public static ConsoleForm Console;
20-
public const string VERSION_STRING = "b1.2";
20+
public const string VERSION_STRING = "b1.2-rc";
2121
public const string VERSION_COMMIT = "-";
2222
public const byte PROTOCOL_VERSION = 13;
23+
public const bool IS_RELEASE_CANDIDATE = true;
2324

2425
// Data paths
2526
public static readonly string DataFolder = Path.Combine(Environment.GetFolderPath(
@@ -95,6 +96,7 @@ private static void PrepareForPlatform()
9596
Console.WriteMessage($"Version: {VERSION_STRING}");
9697
Console.WriteMessage($"Protocol Version: {PROTOCOL_VERSION}");
9798
Console.WriteMessage($"Commit: {VERSION_COMMIT}");
99+
Console.WriteMessage($"Release Candidate: {IS_RELEASE_CANDIDATE}");
98100

99101
if (wineVersion != null)
100102
Console.WriteMessage($"[General] Running under wine ({wineVersion})");

0 commit comments

Comments
 (0)