Skip to content

Commit 1cb1ca4

Browse files
author
LAB02 Research
committed
v2022.5.13
1 parent 7424aad commit 1cb1ca4

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/ScoopBoxManager/Forms/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private async void BtnLaunch_Click(object sender, EventArgs e)
155155
var scoop = appSettings.ConvertToScoopPackageManagerScript();
156156

157157
// check for conflicting settings
158-
if (options.Networking == NetworkingOptions.Disable && (choco.Applications.Any() || scoop.Applications.Any()))
158+
if (choco != null && scoop != null && options.Networking == NetworkingOptions.Disable && (choco.Applications.Any() || scoop.Applications.Any()))
159159
{
160160
// without networking, no packages will get downloaded ..
161161
var q = MessageBox.Show("You've disabled networking, but added packages. They won't be able to download.\r\n\r\nAre you sure you want to continue?", "ScoopBoxManager", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);

src/ScoopBoxManager/Functions/HelperFunctions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ internal static class HelperFunctions
1616
/// <param name="url"></param>
1717
internal static void LaunchUrl(string url)
1818
{
19-
using (_ = Process.Start(new ProcessStartInfo(url) { UseShellExecute = true }))
20-
{
21-
//
22-
}
19+
using (_ = Process.Start(new ProcessStartInfo(url) { UseShellExecute = true })) { }
2320
}
2421
}
2522
}

src/ScoopBoxManager/ScoopBoxManager.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<UseWindowsForms>true</UseWindowsForms>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<ApplicationIcon>sbm.ico</ApplicationIcon>
10-
<Version>2022.3.10</Version>
10+
<Version>2022.5.13</Version>
1111
<Authors>LAB02 Research</Authors>
1212
<Description>Graphical interface for @hasan-hasanov's great ScoopBox, which in turn uses Windows' (also great) new Sandbox feature.</Description>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>

0 commit comments

Comments
 (0)