feat: align legacy operator and playout behavior
This commit is contained in:
@@ -82,6 +82,26 @@ public sealed class LegacyIndustrySelectionWorkflow
|
||||
|
||||
public LegacyIndustrySelectionSnapshot Current => CreateSnapshot();
|
||||
|
||||
/// <summary>
|
||||
/// Recreates the observable UC2 state for one tab activation. The generation
|
||||
/// increment prevents a request started by the discarded control from restoring
|
||||
/// its rows after the operator has re-entered the tab.
|
||||
/// </summary>
|
||||
public LegacyIndustrySelectionSnapshot ResetForTabActivation(IndustryMarket market)
|
||||
{
|
||||
ValidateMarket(market);
|
||||
Interlocked.Increment(ref _loadGeneration);
|
||||
_market = market;
|
||||
_industries = NoIndustries;
|
||||
_actions = LegacyIndustryActionCatalog.GetActions(market);
|
||||
_selectedIndex = null;
|
||||
_selectedIndustry = null;
|
||||
_firstIndustry = null;
|
||||
_secondIndustry = null;
|
||||
Touch();
|
||||
return CreateSnapshot();
|
||||
}
|
||||
|
||||
public async Task<LegacyIndustrySelectionSnapshot> LoadMarketAsync(
|
||||
IndustryMarket market,
|
||||
CancellationToken cancellationToken = default)
|
||||
|
||||
Reference in New Issue
Block a user