File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments