Skip to content

Commit

Permalink
Merge pull request #178 from aapis/bugfix/project-compare-exception-fix
Browse files Browse the repository at this point in the history
[Project compare] exception fix
  • Loading branch information
aapis authored Sep 1, 2023
2 parents 3a75979 + 8849ba6 commit 19d7c83
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DLPrototype.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 142;
CURRENT_PROJECT_VERSION = 143;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\"";
DEVELOPMENT_TEAM = 6DT7L2N5X6;
Expand Down Expand Up @@ -1485,7 +1485,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 142;
CURRENT_PROJECT_VERSION = 143;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DLPrototype/Preview Content\"";
DEVELOPMENT_TEAM = 6DT7L2N5X6;
Expand Down
1 change: 0 additions & 1 deletion DLPrototype/DLPrototype.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2020 YegCollective. All rights reserved.
//

import Foundation
import SwiftUI

@main
Expand Down
1 change: 0 additions & 1 deletion DLPrototype/Models/CoreData/CoreDataTasks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class CoreDataTasks {

static public func recentTasksWidgetData(limit: Int? = 1500) -> FetchRequest<LogTask> {
let descriptors: [NSSortDescriptor] = [
NSSortDescriptor(keyPath: \LogTask.owner?.project, ascending: true),
NSSortDescriptor(keyPath: \LogTask.owner?.jid, ascending: false)
]

Expand Down
3 changes: 0 additions & 3 deletions DLPrototype/Views/Shared/AppSidebar/SidebarItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ struct SidebarItem: View, Identifiable {
}
}
.border(.black.opacity(0.2), width: (showBorder ? 1 : 0))
.mask(
RoundedRectangle(cornerRadius: 4)
)
.onAppear(perform: actionOnAppear)
.contextMenu {
Button("Copy \(data)") {
Expand Down
4 changes: 3 additions & 1 deletion DLPrototype/Views/Tasks/TaskListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct TaskListView: View {

@Environment(\.managedObjectContext) var moc
@EnvironmentObject public var updater: ViewUpdater
@EnvironmentObject public var nav: Navigation

private var tasks: [LogTask] {
let ordered = job.tasks!.sortedArray(using: [
Expand Down Expand Up @@ -92,10 +93,11 @@ struct TaskListView: View {
task.id = UUID()
task.content = entryText
task.owner = job
task.lastUpdate = task.created

entryText = ""
updater.update()

PersistenceController.shared.save()
}
}
Expand Down

0 comments on commit 19d7c83

Please sign in to comment.