Skip to content

Commit

Permalink
Toast on decode success
Browse files Browse the repository at this point in the history
  • Loading branch information
soryy708 committed Sep 4, 2021
1 parent 084e56c commit 17fcbff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ bmpInputBrowseButton.addEventListener('click', asyncWrapper(async () => {
showToast('error', `Failed to decode bitmap. Is it corrupted? Try a BMP with 8 bit depth without compression.`);
return;
}
const oldOutput = shatterMapOutputElement.value;
shatterMapOutputElement.value = decodedData.join('\n');
if (oldOutput !== '') {
showToast('success', 'Decoded bitmap successfully.');
}
}));

shatterMapOutputCopyButton.addEventListener('click', () => {
Expand Down

0 comments on commit 17fcbff

Please sign in to comment.