Remove allow notifications setting, it can be handled natively
This commit is contained in:
5 files changed
+21
-57
No files matched your search
@@ -1,11 +1,7 @@
|
||||
import { writeText } from '@tauri-apps/plugin-clipboard-manager'
|
||||
import { notifyUser } from './notifications'
|
||||
|
||||
export async function copyToClipboard (
|
||||
text: string,
|
||||
notificationsAllowed: boolean
|
||||
) {
|
||||
export async function copyToClipboard (text: string) {
|
||||
await writeText(text)
|
||||
if (notificationsAllowed)
|
||||
await notifyUser('Copied', 'Text "' + text + '" copied to clipboard')
|
||||
await notifyUser('Copied', 'Text "' + text + '" copied to clipboard')
|
||||
}
|
||||
Reference in new issue
Block a user