From a10e05d1fefe95943d32d9b737c8881ca5c3d131 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 06:12:08 +0000 Subject: [PATCH] Add dynamic label and tooltip to Docker Prune button Co-authored-by: acebytes <2820910+acebytes@users.noreply.github.com> --- Sources/Cacheout/Views/SettingsContentView.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Sources/Cacheout/Views/SettingsContentView.swift b/Sources/Cacheout/Views/SettingsContentView.swift index 45f02a8..11ec75a 100644 --- a/Sources/Cacheout/Views/SettingsContentView.swift +++ b/Sources/Cacheout/Views/SettingsContentView.swift @@ -122,14 +122,18 @@ struct SettingsContentView: View { Task { await viewModel.dockerPrune() } } label: { if viewModel.isDockerPruning { - ProgressView() - .scaleEffect(0.7) - .frame(width: 16, height: 16) + HStack(spacing: 6) { + ProgressView() + .scaleEffect(0.5) + .frame(width: 12, height: 12) + Text("Pruning...") + } } else { Label("Prune", systemImage: "cube.transparent") } } .disabled(viewModel.isDockerPruning) + .help(viewModel.isDockerPruning ? "Pruning in progress" : "Run Docker system prune") } if let result = viewModel.lastDockerPruneResult {