Skip to content

Commit

Permalink
Fixed a bug that resulted in app icon not showing as intended.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Apr 6, 2024
1 parent 00406c4 commit abb793f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CCMenu/Source/Pipeline Window/PipelineListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct PipelineListView: View {
.sheet(isPresented: Binding(get: { viewState.showSheet != .noSheet }, set: { v in if !v { viewState.showSheet = .noSheet }})) {
switch viewState.showSheet {
case .noSheet:
Text("") // TODO: Figure out what else to do here; case must be exhaustive but we can't get here
Text("") // TODO: Figure out what else to do here; switch must be exhaustive but we can't get here
case .editPipelineSheet:
if let pipeline = viewState.pipelineToEdit {
EditPipelineSheet(pipeline: pipeline, model: model)
Expand All @@ -78,7 +78,7 @@ struct PipelineListView: View {
}
.onChange(of: viewState.showSheet) { _ in
guard showAppIcon == .sometimes else { return }
NSApp.hideApplicationIcon(viewState.showSheet != .noSheet)
NSApp.hideApplicationIcon(viewState.showSheet == .noSheet)
NSApp.activateThisApp()
}
.fileImporter(isPresented: $viewState.isShowingImporter, allowedContentTypes: [.json]) { result in
Expand Down

0 comments on commit abb793f

Please sign in to comment.