Skip to content

Commit

Permalink
show style sizes after import
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jan 17, 2025
1 parent c73bc32 commit 4ce43a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/background/style-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ export async function importMany(items) {
const method = dataMap.has(id) ? 'styleUpdated' : 'styleAdded';
const style = onSaved(styles[r], false, id);
messages.push([style, 'import', method]);
res[i] = {style};
res[i] = {
style: {
...style,
[k_size]: calcObjSize(style),
},
};
}
}
styleCache.clear();
Expand Down

0 comments on commit 4ce43a8

Please sign in to comment.