This commit is contained in:
H0llyW00dzZ
2025-02-17 02:39:51 +00:00
committed by GitHub
2 changed files with 15 additions and 4 deletions

View File

@@ -456,8 +456,13 @@ export function ImagePreviewer(props: {
if (isMobile || (isApp && window.__TAURI__)) {
if (isApp && window.__TAURI__) {
/**
* Fixed client app [Tauri]
* Resolved the issue where files couldn't be saved when there was a `:` in the dialog.
*/
const fileName = props.topic.replace(/:/g, '');
const result = await window.__TAURI__.dialog.save({
defaultPath: `${props.topic}.png`,
defaultPath: `${fileName}.png`,
filters: [
{
name: "PNG Files",