Skip to content

Commit 022c548

Browse files
committed
Remove unsupported features when using remote
1 parent 396c16f commit 022c548

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CodeApp/UI/main/tabBar.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct tabBar: View {
4646
.onTapGesture {
4747
App.compileManager.stopRunning()
4848
}
49-
} else {
49+
} else if !App.workSpaceStorage.remoteConnected {
5050
Button(action: {
5151
if !App.currentURL().contains("index{default}.md{code-preview}") {
5252
if App.currentURL().components(separatedBy: "/").last?.components(
@@ -155,8 +155,10 @@ struct tabBar: View {
155155
Button(action: { App.closeAllEditors() }) {
156156
Label("Close All", systemImage: "xmark")
157157
}
158-
Button(action: { self.showSafari.toggle() }) {
159-
Label("Preview in Safari", systemImage: "safari")
158+
if !App.workSpaceStorage.remoteConnected {
159+
Button(action: { self.showSafari.toggle() }) {
160+
Label("Preview in Safari", systemImage: "safari")
161+
}
160162
}
161163
}
162164
Divider()

0 commit comments

Comments
 (0)