File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/Files/ViewModels/Widgets/Bundles Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public bool NoBundleContentsTextLoad
78
78
set => SetProperty ( ref noBundleContentsTextLoad , value ) ;
79
79
}
80
80
81
- private bool isAddItemOptionEnabled ;
81
+ private bool isAddItemOptionEnabled = true ;
82
82
83
83
public bool IsAddItemOptionEnabled
84
84
{
@@ -493,6 +493,7 @@ public async Task<bool> AddBundleItem(BundleItemViewModel bundleItem)
493
493
Contents . Add ( bundleItem ) ;
494
494
itemAddedInternally = false ;
495
495
NoBundleContentsTextLoad = false ;
496
+ IsAddItemOptionEnabled = Contents . Count < Constants . Widgets . Bundles . MaxAmountOfItemsPerBundle ;
496
497
await bundleItem . UpdateIcon ( ) ;
497
498
return true ;
498
499
}
@@ -520,11 +521,6 @@ public async Task<BundleContainerViewModel> SetBundleItems(IEnumerable<BundleIte
520
521
521
522
await AddBundleItems ( items ) ;
522
523
523
- if ( Contents . Count > 0 )
524
- {
525
- NoBundleContentsTextLoad = false ;
526
- }
527
-
528
524
return this ;
529
525
}
530
526
You can’t perform that action at this time.
0 commit comments