This commit is contained in:
GenevensiS
2025-08-11 17:54:52 +02:00
parent 81e9a1e26f
commit 78b93e5701
7 changed files with 7 additions and 26 deletions
-13
View File
@@ -172,19 +172,6 @@ void AddJSONWindow::onBrowseFiles(wxCommandEvent&) {
}
void AddJSONWindow::onOk(wxCommandEvent&) {
// debug test shit
export_image(set, set->cards.front(), "C:\\Users\\Oli\\Desktop\\tetest\\test.png");
auto extImg = make_intrusive<ExternalImage>("C:/Users/Oli/Desktop/tetest/test.png");
Image img = extImg->generate(GeneratedImage::Options(0, 0, set->stylesheet.get(), set.get()));
if (img.HasOption(wxIMAGE_OPTION_FILENAME)) queue_message(MESSAGE_ERROR, img.GetOption(wxIMAGE_OPTION_FILENAME));
else queue_message(MESSAGE_ERROR, _("no dice"));
return;
/// Perform the import
wxBusyCursor wait;
// Read the file