Only use internal clipboard on error

This commit is contained in:
Zachary Yedidia
2020-12-26 14:45:22 -05:00
parent 299ba2fe97
commit b5ce418201

View File

@@ -42,7 +42,9 @@ func Initialize(m Method) error {
case External:
err = clipboard.Initialize()
}
CurrentMethod = Internal
if err != nil {
CurrentMethod = Internal
}
return err
}