From 082e910fb6570e2e7972d16b8728f9400077ac11 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 3 Jun 2025 23:18:32 -0400 Subject: fix image pasting --- src/components/chatinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/chatinput.cpp') diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp index 1fcf628..0590379 100644 --- a/src/components/chatinput.cpp +++ b/src/components/chatinput.cpp @@ -204,7 +204,8 @@ bool ChatInputAttachmentContainer::AddImage(const Glib::RefPtr &pb) static unsigned go_up = 0; std::string dest_name = "pasted-image-" + std::to_string(go_up++); - const auto path = (std::filesystem::temp_directory_path() / "abaddon-cache" / dest_name).string(); + const auto cache_path = Abaddon::Get().GetImageManager().GetCache().GetCachePath(); + const auto path = (cache_path / dest_name).string(); try { pb->save(path, "png"); -- cgit v1.2.3