Skip to content

Commit

Permalink
About dialog copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 14, 2023
1 parent 8966654 commit 6de93c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions interface/windows/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ export const about = async () => {

const info = `Authme: ${build.version} \n\nTauri: ${tauriVersion}\n${browserName}: ${browserVersion}\n\nOS version: ${osName} ${osArch} ${osVersion}\nHardware info: ${cpu} ${memory} RAM\n\nRelease date: ${build.date}\nBuild number: ${build.number}\n\nCreated by: Lőrik Levente`

dialog.message(info)
clipboard.writeText(info)
const res = await dialog.confirm(info, { cancelLabel: "Close", okLabel: "Copy" })

if (res) {
clipboard.writeText(info)
}
}

export const clearData = async () => {
Expand Down

0 comments on commit 6de93c1

Please sign in to comment.