mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
Only use internal clipboard on error
This commit is contained in:
parent
299ba2fe97
commit
b5ce418201
1 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ func Initialize(m Method) error {
|
|||
case External:
|
||||
err = clipboard.Initialize()
|
||||
}
|
||||
CurrentMethod = Internal
|
||||
if err != nil {
|
||||
CurrentMethod = Internal
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue