aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Shiftnet.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/Shiftnet.cs b/ShiftOS.WinForms/Applications/Shiftnet.cs
index 6f99d25..986eec6 100644
--- a/ShiftOS.WinForms/Applications/Shiftnet.cs
+++ b/ShiftOS.WinForms/Applications/Shiftnet.cs
@@ -126,10 +126,12 @@ namespace ShiftOS.WinForms.Applications
var bytes = JsonConvert.DeserializeObject<byte[]>(msg.Contents);
string destPath = null;
string ext = Url.Split('.')[Url.Split('.').Length - 1];
-
- FileSkimmerBackend.GetFile(new[] { ext }, FileOpenerStyle.Save, new Action<string>((file) =>
+ this.Invoke(new Action(() =>
{
- destPath = file;
+ FileSkimmerBackend.GetFile(new[] { ext }, FileOpenerStyle.Save, new Action<string>((file) =>
+ {
+ destPath = file;
+ }));
}));
while (string.IsNullOrEmpty(destPath))
{
@@ -143,7 +145,10 @@ namespace ShiftOS.WinForms.Applications
Progress = 0,
};
DownloadManager.StartDownload(d);
- AppearanceManager.SetupWindow(new Downloader());
+ this.Invoke(new Action(() =>
+ {
+ AppearanceManager.SetupWindow(new Downloader());
+ }));
ServerManager.MessageReceived -= smr;
}
};