From 8a51c5ad522636e95e028b1264c75c9030b0d324 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 31 Jul 2019 20:17:19 +0300 Subject: [PATCH] fixed order --- src/modules/integrated-circuits/helpers/compileIc.ts | 4 +++- src/modules/saving/data/categories.ts | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/integrated-circuits/helpers/compileIc.ts b/src/modules/integrated-circuits/helpers/compileIc.ts index 92d327d..3e7fd5c 100644 --- a/src/modules/integrated-circuits/helpers/compileIc.ts +++ b/src/modules/integrated-circuits/helpers/compileIc.ts @@ -12,6 +12,7 @@ import { CurrentLanguage } from '../../internalisation/stores/currentLanguage' import { fromSimulationState } from '../../saving/helpers/fromState' import { cleanSimulation } from '../../simulation-actions/helpers/clean' import { getSimulationState } from '../../saving/helpers/getState' +import { categories } from '../../saving/data/categories' /** * Compiles a simulation into a logicGate @@ -46,7 +47,8 @@ export const compileIc = (state: SimulationState) => { outputs: { count: outputCount } - } + }, + category: categories.ic } templateStore.set(name, result) diff --git a/src/modules/saving/data/categories.ts b/src/modules/saving/data/categories.ts index 4d39014..426c495 100644 --- a/src/modules/saving/data/categories.ts +++ b/src/modules/saving/data/categories.ts @@ -1,8 +1,9 @@ export const categories = { basic: 0, - io: 3, math: 1, time: 2, - advancedIo: 4, - compressing: 5 + compressing: 3, + io: 4, + advancedIo: 5, + ic: 6 }