Disable stop timer button when no project is selected

This commit is contained in:
2026-02-20 18:19:58 +01:00
parent fc3b7d7c2c
commit d37170fc5d

View File

@@ -116,6 +116,7 @@ struct TimerView: View {
.buttonStyle(.borderedProminent)
.tint(.red)
.controlSize(.large)
.disabled(viewModel.selectedProject == nil && viewModel.activeTimer?.project == nil)
}
}
.padding(.horizontal, 24)