diff --git a/Device.cs b/Device.cs index e7b3321..afb89d4 100644 --- a/Device.cs +++ b/Device.cs @@ -259,6 +259,8 @@ public async Task UpdateOrderAssetsAsync(string newOrder) /// public async Task CreateAssetAsync(Asset a) { + var originalName = a.Name; + if (a.LocalToken != null) { var localFile = await StorageApplicationPermissions.FutureAccessList.GetFileAsync(a.LocalToken); @@ -284,6 +286,8 @@ public async Task CreateAssetAsync(Asset a) string resultJson = string.Empty; string parameters = $"/api/{this.ApiVersion}assets"; + a.Name = originalName; + try { HttpClient client = new HttpClient(); diff --git a/Package.appxmanifest b/Package.appxmanifest index d7389f9..b4a3aab 100644 --- a/Package.appxmanifest +++ b/Package.appxmanifest @@ -1,6 +1,6 @@  - + ScreenlyManager