-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
134 changed files
with
3,560 additions
and
3,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ obj/ | |
/build | ||
/releases | ||
/publish | ||
/publish.sh | ||
/packages/ | ||
riderModule.iml | ||
/_ReSharper.Caches/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) VolcanicArts. Licensed under the GPL-3.0 License. | ||
// See the LICENSE file in the repository root for full license text. | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace VRCOSC.App.Actions; | ||
|
||
public class CallbackProgressAction : ProgressAction | ||
{ | ||
public override string Title { get; } | ||
private readonly Action? callback; | ||
private readonly Func<Task?>? taskCallback; | ||
|
||
public CallbackProgressAction(string title, Action callback) | ||
{ | ||
Title = title; | ||
this.callback = callback; | ||
} | ||
|
||
public CallbackProgressAction(string title, Func<Task?> callback) | ||
{ | ||
Title = title; | ||
taskCallback = callback; | ||
} | ||
|
||
protected override async Task Perform() | ||
{ | ||
callback?.Invoke(); | ||
await (taskCallback?.Invoke() ?? Task.CompletedTask); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.