diff --git a/src/app.rs b/src/app.rs index bc0b21f..e5e5d9d 100644 --- a/src/app.rs +++ b/src/app.rs @@ -3,7 +3,6 @@ use std::{collections::HashMap, io::Cursor}; use egui::{CollapsingHeader, Color32, DroppedFile, FontFamily, FontId, Image, RichText, Vec2}; use image::DynamicImage; -use rfd::FileDialog; use serde_json::Value; use texture_packer::{importer::ImageImporter, TexturePacker, TexturePackerConfig}; pub const MY_ACCENT_COLOR32: Color32 = Color32::from_rgb(230, 102, 1); @@ -212,7 +211,11 @@ impl TemplateApp { { let data = self.data.clone().unwrap().data; use std::io::Write; - let path_buf = FileDialog::new().set_directory(".").add_filter("Image", &["png"]).set_file_name("output.png").save_file(); + let path_buf = rfd::FileDialog::new() + .set_directory(".") + .add_filter("Image", &["png"]) + .set_file_name("output.png") + .save_file(); if let Some(path) = path_buf { let mut file = std::fs::File::create(path).unwrap(); let write_result = file.write_all(&data); @@ -392,7 +395,6 @@ impl eframe::App for TemplateApp { .add(egui::Button::new("Copy JSON to Clipboard")) .clicked() { - ui.output_mut(|o| o.copied_text = data.frames_json.to_string()); }; }