Skip to content

Commit 7a1fd6c

Browse files
authored
Release 0.4.1 (#7)
* Fixed "Source" dataset not showing up - Fixed Start Transformation button not properly enabling * Bumping version
1 parent 0c2a4d4 commit 7a1fd6c

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ucrp-20240206
1+
ucrp-20240222
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System;
22
using Unity.Cloud.Common;
33

4-
[assembly: ApiSourceVersion("Unity Cloud Reference Project", "0.4.0")]
4+
[assembly: ApiSourceVersion("Unity Cloud Reference Project", "0.4.1")]

ReferenceProject/Assets/_Modules/AssetList/Runtime/Scripts/TransformationWorkflow/TransformationWorkflowUIController.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class TransformationWorkflowUIController : MonoBehaviour
2626
[SerializeField]
2727
bool m_HideNonSourceDatasets = true;
2828

29-
static readonly string k_SourceDatasetName = "Sources"; // This is a convention in the Asset Manager
29+
static readonly string k_SourceDatasetName = "Source"; // This is a convention in the Asset Manager
3030

3131
TransformationWorkflowController m_TransformationWorkflowController;
3232

@@ -206,7 +206,7 @@ public void ShowDialog(IAsset asset)
206206
{
207207
m_DatasetDropdown.SetEnabled(true);
208208
m_DatasetDropdown.sourceItems = m_HideNonSourceDatasets ?
209-
datasets.Where(d => d.Name == k_SourceDatasetName).ToList() : datasets;
209+
datasets.Where(d => d.Name != null && d.Name.Contains(k_SourceDatasetName)).ToList() : datasets;
210210

211211
if (datasets.Count > 0)
212212
{
@@ -269,9 +269,8 @@ async Task RefreshTransformationsState(IAsset asset)
269269
{
270270
foreach (var t in assetTransformations)
271271
{
272-
if (t.IsRunning() && m_Dialog.isPrimaryActionDisabled)
272+
if (t.IsRunning())
273273
{
274-
m_Dialog.isPrimaryActionDisabled = false;
275274
isRunning = true;
276275
}
277276

@@ -282,6 +281,8 @@ async Task RefreshTransformationsState(IAsset asset)
282281
{
283282
m_Transformations.Add(new Heading("@AssetList:NoTransformation") { size = HeadingSize.XXS });
284283
}
284+
285+
m_Dialog.isPrimaryActionDisabled = isRunning;
285286

286287
if (isRunning)
287288
{

ReferenceProject/ProjectSettings/ProjectSettings.asset

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)