Commit 4e9b0e76ee
4e9b0e76eed7f397b477bede8be17185c8417ad9
parent: 517ec65ad7
Verified · cmc
cmc <hello@cleberg.net> · 2026-11-25 23:37 UTC
Mac: "This is the only pane." as on iOS
Ref #222
Changed files (2)
Sources/Orgstar/ContentView.swift
+1 −1 · view
| @@ -1304,7 +1304,7 @@ struct ContentView: View { |
| 1304 | 1304 | case "app.split-below": paneWindow?.split(.vertical) |
| 1305 | 1305 | case "app.split-right": paneWindow?.split(.horizontal) |
| 1306 | 1306 | case "app.pane-close": |
| 1307 | | guard let window = paneWindow, window.paneCount > 1 else { return commands.show(String(localized: "Attempt to delete the only pane")) } |
| 1307 | guard let window = paneWindow, window.paneCount > 1 else { return commands.show(String(localized: "This is the only pane.", comment: "Close Pane with one pane")) } |
| 1308 | 1308 | commands.store.releasePane(window.focused) |
| 1309 | 1309 | window.close(window.focused) |
| 1310 | 1310 | focusPane(window) |
l10n/Localizable.xcstrings
−35 · view
| @@ -4690,41 +4690,6 @@ |
| 4690 | 4690 | } |
| 4691 | 4691 | } |
| 4692 | 4692 | }, |
| 4693 | | "Attempt to delete the only pane": { |
| 4694 | | "comment": "Echo area: Close Pane with one pane", |
| 4695 | | "localizations": { |
| 4696 | | "de": { |
| 4697 | | "stringUnit": { |
| 4698 | | "state": "translated", |
| 4699 | | "value": "Der einzige Bereich kann nicht geschlossen werden" |
| 4700 | | } |
| 4701 | | }, |
| 4702 | | "es": { |
| 4703 | | "stringUnit": { |
| 4704 | | "state": "translated", |
| 4705 | | "value": "No se puede cerrar el único panel" |
| 4706 | | } |
| 4707 | | }, |
| 4708 | | "fr": { |
| 4709 | | "stringUnit": { |
| 4710 | | "state": "translated", |
| 4711 | | "value": "Impossible de fermer le seul panneau" |
| 4712 | | } |
| 4713 | | }, |
| 4714 | | "ja": { |
| 4715 | | "stringUnit": { |
| 4716 | | "state": "translated", |
| 4717 | | "value": "唯一のペインは閉じられません" |
| 4718 | | } |
| 4719 | | }, |
| 4720 | | "pt-BR": { |
| 4721 | | "stringUnit": { |
| 4722 | | "state": "translated", |
| 4723 | | "value": "Não é possível fechar o único painel" |
| 4724 | | } |
| 4725 | | } |
| 4726 | | } |
| 4727 | | }, |
| 4728 | 4693 | "Auto Fill": { |
| 4729 | 4694 | "comment": "View menu toggle (auto-fill-mode)", |
| 4730 | 4695 | "localizations": { |