feat: notification on copy
This commit is contained in:
@@ -103,7 +103,7 @@ func TestCopyThreadKeyWritesExportWithoutBlockingUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
model, _ = model.(App).Update(message)
|
model, _ = model.(App).Update(message)
|
||||||
updated := model.(App)
|
updated := model.(App)
|
||||||
if updated.notice != "thread copied" || updated.err != nil {
|
if updated.notice != "thread copied to clipboard" || updated.err != nil {
|
||||||
t.Fatalf("copy result notice=%q err=%v", updated.notice, updated.err)
|
t.Fatalf("copy result notice=%q err=%v", updated.notice, updated.err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
tui.go
2
tui.go
@@ -991,7 +991,7 @@ func (m App) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
return m, m.difflet.setState(diffletRecoverableError)
|
return m, m.difflet.setState(diffletRecoverableError)
|
||||||
}
|
}
|
||||||
m.err = nil
|
m.err = nil
|
||||||
m.notice = "thread copied"
|
m.notice = "thread copied to clipboard"
|
||||||
return m, m.difflet.setState(diffletSuccess)
|
return m, m.difflet.setState(diffletSuccess)
|
||||||
case draftFlushMsg:
|
case draftFlushMsg:
|
||||||
if msg.err != nil {
|
if msg.err != nil {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
const dipleVersion = "0.6.0"
|
const dipleVersion = "0.6.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user