manager: allow parent path annotations
- Allows unlimited amount of `..\` or `../` at the start of DestPath string. - Each of then will go back one folder. - Similar to how Linux works or Visual Studio project styles. - This allows us to install/update lwjgl3ify in PrismLauncher.
This commit is contained in:
@@ -42,6 +42,12 @@ public partial class UpdatesCollectorUi : RadForm
|
||||
{
|
||||
var updates = await factory.FindUpdates(action, workspace.ModpackConfig?.MinecraftVersion, workspace.ModpackConfig?.ModLoader ?? ModLoader.Any);
|
||||
|
||||
BeginInvoke(() =>
|
||||
{
|
||||
radProgressBar1.Value1 += 1;
|
||||
radProgressBar1.Text = $"{radProgressBar1.Value1} / {radProgressBar1.Maximum}";
|
||||
});
|
||||
|
||||
if (updates == null || updates.Length == 0 || updates[0].Value == action.SourceTag)
|
||||
continue;
|
||||
|
||||
@@ -96,8 +102,15 @@ public partial class UpdatesCollectorUi : RadForm
|
||||
private async void UpdatesCollectorUi_Shown(object sender, EventArgs e)
|
||||
{
|
||||
radWaitingBar1.StartWaiting();
|
||||
radProgressBar1.Value1 = 0;
|
||||
radProgressBar1.Maximum = actions.Length;
|
||||
radProgressBar1.Text = null;
|
||||
radProgressBar1.Visible = true;
|
||||
|
||||
CurrentUpdates = await FindUpdates();
|
||||
LoadUpdates(CurrentUpdates);
|
||||
|
||||
radProgressBar1.Visible = false;
|
||||
radWaitingBar1.StopWaiting();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user