parent
46ecd7d190
commit
0fd5030297
18 changed files with 84 additions and 85 deletions
|
@ -94,7 +94,7 @@ fn toggle_modal(workspace: &mut Workspace, cx: &mut ViewContext<'_, Workspace>)
|
|||
workspace
|
||||
.update(&mut cx, |workspace, cx| {
|
||||
if workspace.project().update(cx, |project, cx| {
|
||||
project.is_local() || project.ssh_connection_string(cx).is_some()
|
||||
project.is_local_or_ssh() || project.ssh_connection_string(cx).is_some()
|
||||
}) {
|
||||
workspace.toggle_modal(cx, |cx| {
|
||||
TasksModal::new(project, task_context, workspace_handle, cx)
|
||||
|
|
|
@ -222,10 +222,10 @@ impl PickerDelegate for TasksModalDelegate {
|
|||
let resolved_task =
|
||||
picker.delegate.project.update(cx, |project, cx| {
|
||||
let ssh_connection_string = project.ssh_connection_string(cx);
|
||||
if project.is_remote() && ssh_connection_string.is_none() {
|
||||
if project.is_via_collab() && ssh_connection_string.is_none() {
|
||||
Task::ready((Vec::new(), Vec::new()))
|
||||
} else {
|
||||
let remote_templates = if project.is_local() {
|
||||
let remote_templates = if project.is_local_or_ssh() {
|
||||
None
|
||||
} else {
|
||||
project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue