stop clipboard monitor before starting it again
This commit is contained in:
parent
d4e74a0572
commit
4508efb9a6
@ -30,6 +30,8 @@ class ClipboardMonitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
this.stop();
|
||||||
|
|
||||||
// The token below is used as a unique identifier to ensure that a new clipboard monitor
|
// The token below is used as a unique identifier to ensure that a new clipboard monitor
|
||||||
// hasn't been started during the await call. The check below the await apiClipboardGet()
|
// hasn't been started during the await call. The check below the await apiClipboardGet()
|
||||||
// call will exit early if the reference has changed.
|
// call will exit early if the reference has changed.
|
||||||
|
Loading…
Reference in New Issue
Block a user