macos task switch focus
This commit is contained in:
@@ -170,8 +170,12 @@ final class ChatModel {
|
||||
}
|
||||
}
|
||||
|
||||
func takeFocusStart() -> Bool {
|
||||
let take = focusStart && session == nil
|
||||
func takeFocus() -> Bool {
|
||||
let asked = taskId != nil && store.composerFocus == taskId
|
||||
if asked {
|
||||
store.composerFocus = nil
|
||||
}
|
||||
let take = asked || (focusStart && session == nil)
|
||||
focusStart = false
|
||||
return take
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user