feat: close dialog and show toast for copy to clipboard

Change the toast duration from 5 seconds to 1.5 seconds.
This commit is contained in:
yongjoon_km 2024-05-15 13:57:02 +09:00
parent 4dc975ceb5
commit 89c3508fd5

View file

@ -1788,6 +1788,7 @@ class App extends React.Component<AppProps, AppState> {
`"${fileHandle.name}"`,
)
: t("toast.fileSaved"),
duration: 1500,
},
});
} else if (type === "clipboard") {
@ -1795,6 +1796,7 @@ class App extends React.Component<AppProps, AppState> {
openDialog: null,
toast: {
message: t("toast.copyToClipboard"),
duration: 1500,
},
});
}