Skip to content

Commit 3c8fbc4

Browse files
committed
Fix uptime item removal in edit mode
Pass configuration​Item through the non-threshold Uptime​Subview branch so the inline remove button can remove the uptime item correctly in edit mode. This aligns the minus-button behavior with the working context-menu remove action.
1 parent 28317f0 commit 3c8fbc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Support/Views/ButtonViews/UptimeSubview.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct UptimeSubview: View {
7777
}
7878
}
7979
} else {
80-
InfoItem(title: NSLocalizedString("Last Reboot", comment: ""), subtitle: "\(computerinfo.uptimeRounded) \(computerinfo.uptimeText) " + NSLocalizedString("ago", comment: ""), image: "clock.fill", symbolColor: color, notificationBadgeBool: false, hoverEffectEnable: false)
80+
InfoItem(title: NSLocalizedString("Last Reboot", comment: ""), subtitle: "\(computerinfo.uptimeRounded) \(computerinfo.uptimeText) " + NSLocalizedString("ago", comment: ""), image: "clock.fill", symbolColor: color, notificationBadgeBool: false, configurationItem: configurationItem, hoverEffectEnable: false)
8181
.onTapGesture {
8282
if preferences.editModeEnabled {
8383
guard let configurationItem else {

0 commit comments

Comments
 (0)