Skip to content

Commit

Permalink
Remove unsupported features when using remote
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed May 3, 2022
1 parent 396c16f commit 022c548
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CodeApp/UI/main/tabBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct tabBar: View {
.onTapGesture {
App.compileManager.stopRunning()
}
} else {
} else if !App.workSpaceStorage.remoteConnected {
Button(action: {
if !App.currentURL().contains("index{default}.md{code-preview}") {
if App.currentURL().components(separatedBy: "/").last?.components(
Expand Down Expand Up @@ -155,8 +155,10 @@ struct tabBar: View {
Button(action: { App.closeAllEditors() }) {
Label("Close All", systemImage: "xmark")
}
Button(action: { self.showSafari.toggle() }) {
Label("Preview in Safari", systemImage: "safari")
if !App.workSpaceStorage.remoteConnected {
Button(action: { self.showSafari.toggle() }) {
Label("Preview in Safari", systemImage: "safari")
}
}
}
Divider()
Expand Down

0 comments on commit 022c548

Please sign in to comment.