Skip to content

Commit

Permalink
Force refill flag added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed May 8, 2024
1 parent 550376f commit a8f0382
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ const {
refillAtoms,
} = useSimulationStore();
const forceRefill = ref(false);
const needRefill = computed((): boolean => {
return randomTypesConfig.TYPES_COUNT !== configStore.typesConfig.COLORS.length ||
randomTypesConfig.USE_FREQUENCY_BOUNDS;
randomTypesConfig.USE_FREQUENCY_BOUNDS || forceRefill.value;
});
const useIgnoreSubMatricesBoundaryIndex: Ref<boolean> = ref(false);
Expand Down Expand Up @@ -218,6 +220,12 @@ const randomizeTypesConfig = () => {
placeholder="Cross position"
/>
</div>
<div>
<flag
title="Force refill"
v-model="forceRefill"
/>
</div>
<div v-if="needRefill">
<br />
<initial-config-section :with-buttons="false" />
Expand Down

0 comments on commit a8f0382

Please sign in to comment.