From e011a0d89f25e5fdda2ca28f384befd3c69a4e7b Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 16 Nov 2026 00:40:30 +0100 Subject: [PATCH] fix(gui): show Excluded Files on the Sync page when every folder is online only The group was hidden without a folder set to Synced, so it could not be found. It now always shows, with the patterns for all folders and Add Pattern, and says that patterns apply only to folders kept on this computer. --- .../pdfs-gui/src/app/pages/sync_exclusions.rs | 22 +- po/de.po | 248 +++++++------- po/en_GB.po | 311 +++++++++--------- po/es.po | 248 +++++++------- po/fr.po | 248 +++++++------- po/it.po | 248 +++++++------- po/nl.po | 248 +++++++------- po/pdfs.pot | 230 ++++++------- po/pl.po | 248 +++++++------- po/pt_BR.po | 248 +++++++------- 10 files changed, 1231 insertions(+), 1068 deletions(-) diff --git a/crates/pdfs-gui/src/app/pages/sync_exclusions.rs b/crates/pdfs-gui/src/app/pages/sync_exclusions.rs index 2ff0979..60eec7f 100644 --- a/crates/pdfs-gui/src/app/pages/sync_exclusions.rs +++ b/crates/pdfs-gui/src/app/pages/sync_exclusions.rs @@ -5,7 +5,9 @@ //! The rows open the editors that already exist: Preferences → Sync for the //! patterns of all folders, the Excluded Files dialog for a folder's own //! `.pdfsignore`. Only folders kept on this computer are listed; an -//! online-only folder has no local files for patterns to leave out. +//! online-only folder has no local files for patterns to leave out. With none +//! of those, the group still shows, so the patterns can be found and set up +//! before a folder is switched to Synced, and says why they do nothing yet. use crate::*; use pdfs_core::syncignore::{FolderRules, add_folder_pattern, check_pattern}; @@ -61,7 +63,7 @@ pub(crate) fn wire_exclusions(ui: &Rc) { } /// Rebuild the rows for the folders in `items` when the set of synced folders -/// kept on this computer changed. The tick repaints the folder list every few +/// kept on this computer changed, or on the first paint. The tick repaints the folder list every few /// seconds; the rows and their counts stay as they are in between. pub(crate) fn paint_exclusions(ui: &Rc, items: &[MountSpec]) { let folders: Vec<(i64, PathBuf)> = items @@ -90,10 +92,7 @@ pub(crate) fn refresh_exclusions(ui: &Rc) { state.group.remove(&row); } let folders = state.folders.borrow().clone(); - state.group.set_visible(!folders.is_empty()); - if folders.is_empty() { - return; - } + state.group.set_visible(true); let generation = state.generation.get() + 1; state.generation.set(generation); @@ -113,6 +112,17 @@ pub(crate) fn refresh_exclusions(ui: &Rc) { }); state.group.add(&all); let mut rows = vec![all]; + if folders.is_empty() { + let none = adw::ActionRow::builder() + .title(gettext("No folder is set to Synced")) + .subtitle(gettext( + "Patterns apply only to folders kept on this computer. Online-only folders upload every file saved in them.", + )) + .build(); + none.add_prefix(>k4::Image::from_icon_name("info-outline-symbolic")); + state.group.add(&none); + rows.push(none); + } let mut counted = Vec::new(); for (id, root) in folders { diff --git a/po/de.po b/po/de.po index 4c0e163..1d9fbac 100644 --- a/po/de.po +++ b/po/de.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: proton-drive-linux 2.1.0\n" "Report-Msgid-Bugs-To: https://github.com/narrrl/proton-drive-linux/issues\n" -"POT-Creation-Date: 2026-11-16 00:15+0100\n" +"POT-Creation-Date: 2026-11-16 00:38+0100\n" "PO-Revision-Date: 2026-09-23 12:00+0200\n" "Last-Translator: Proton Drive for Linux contributors\n" "Language-Team: German\n" @@ -57,7 +57,7 @@ msgstr "%-d. %b %Y" msgid "%A, %B %-d, %Y, %H:%M" msgstr "%A, %-d. %B %Y, %H:%M" -#: crates/pdfs-gui/src/app/main.rs:926 +#: crates/pdfs-gui/src/app/main.rs:934 #: crates/pdfs-gui/src/app/pages/activity_text.rs:543 #: crates/pdfs-gui/src/app/pages/browser.rs:473 #: crates/pdfs-gui/src/app/pages/browser.rs:880 @@ -70,37 +70,37 @@ msgstr "%A, %-d. %B %Y, %H:%M" msgid "My files" msgstr "Meine Dateien" -#: crates/pdfs-gui/src/app/main.rs:927 crates/pdfs-gui/src/app/main.rs:1608 +#: crates/pdfs-gui/src/app/main.rs:935 crates/pdfs-gui/src/app/main.rs:1616 #: crates/pdfs-gui/src/app/pages/albums.rs:636 #: crates/pdfs-gui/src/app/pages/photos.rs:929 #: crates/pdfs-gui/src/app/pages/places.rs:473 msgid "Photos" msgstr "Fotos" -#: crates/pdfs-gui/src/app/main.rs:930 +#: crates/pdfs-gui/src/app/main.rs:938 #: crates/pdfs-gui/src/app/pages/shared.rs:168 #: crates/pdfs-gui/src/app/pages/shared.rs:493 msgid "Shared with me" msgstr "Mit mir geteilt" -#: crates/pdfs-gui/src/app/main.rs:935 +#: crates/pdfs-gui/src/app/main.rs:943 #: crates/pdfs-gui/src/app/pages/shared_by_me.rs:120 msgid "Shared by me" msgstr "Von mir geteilt" -#: crates/pdfs-gui/src/app/main.rs:938 +#: crates/pdfs-gui/src/app/main.rs:946 #: crates/pdfs-gui/src/app/pages/devices.rs:140 #: crates/pdfs-gui/src/app/pages/devices.rs:505 msgid "Computers" msgstr "Computer" -#: crates/pdfs-gui/src/app/main.rs:939 +#: crates/pdfs-gui/src/app/main.rs:947 #: crates/pdfs-gui/src/app/pages/trash.rs:101 msgid "Trash" msgstr "Papierkorb" #. Translators: sidebar entry for the page listing this computer's synced folders. -#: crates/pdfs-gui/src/app/main.rs:941 +#: crates/pdfs-gui/src/app/main.rs:949 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:66 msgid "Sync" msgstr "Synchronisierung" @@ -108,12 +108,12 @@ msgstr "Synchronisierung" #. Translators: a failed action's toast. {what} says what failed, such as #. "Couldn't rename"; {detail} is the reason, usually untranslated text #. from the mount service. -#: crates/pdfs-gui/src/app/main.rs:1291 +#: crates/pdfs-gui/src/app/main.rs:1299 #: crates/pdfs-gui/src/app/pages/photo_viewer.rs:915 #: crates/pdfs-gui/src/app/pages/preferences_apps.rs:284 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:175 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:212 -#: crates/pdfs-gui/src/app/pages/sync_exclusions.rs:391 +#: crates/pdfs-gui/src/app/pages/sync_exclusions.rs:401 #: crates/pdfs-gui/src/app/pages/takeout.rs:891 #: crates/pdfs-gui/src/app/widgets/ignore_dialog.rs:182 #: crates/pdfs-gui/src/app/widgets/ignore_dialog.rs:289 @@ -121,31 +121,31 @@ msgstr "Synchronisierung" msgid "{what}: {detail}" msgstr "{what}: {detail}" -#: crates/pdfs-gui/src/app/main.rs:1314 +#: crates/pdfs-gui/src/app/main.rs:1322 msgid "You're offline" msgstr "Keine Internetverbindung" -#: crates/pdfs-gui/src/app/main.rs:1315 +#: crates/pdfs-gui/src/app/main.rs:1323 msgid "That's not there any more" msgstr "Das ist nicht mehr vorhanden" -#: crates/pdfs-gui/src/app/main.rs:1316 +#: crates/pdfs-gui/src/app/main.rs:1324 msgid "You don't have access to that" msgstr "Kein Zugriff darauf" -#: crates/pdfs-gui/src/app/main.rs:1317 +#: crates/pdfs-gui/src/app/main.rs:1325 msgid "Something changed this first" msgstr "Etwas anderes hat dies zuerst geändert" -#: crates/pdfs-gui/src/app/main.rs:1318 +#: crates/pdfs-gui/src/app/main.rs:1326 msgid "Your Proton Drive is full" msgstr "Das Proton Drive ist voll" -#: crates/pdfs-gui/src/app/main.rs:1405 +#: crates/pdfs-gui/src/app/main.rs:1413 msgid "Proton Drive for Linux" msgstr "Proton Drive for Linux" -#: crates/pdfs-gui/src/app/main.rs:1413 +#: crates/pdfs-gui/src/app/main.rs:1421 msgid "" "Files-on-demand Proton Drive for the Linux desktop.\n" "\n" @@ -157,23 +157,23 @@ msgstr "" "Inoffizieller Client – nicht mit Proton AG verbunden, von Proton AG " "unterstützt oder befürwortet." -#: crates/pdfs-gui/src/app/main.rs:1418 +#: crates/pdfs-gui/src/app/main.rs:1426 msgid "Source Code" msgstr "Quellcode" -#: crates/pdfs-gui/src/app/main.rs:1422 +#: crates/pdfs-gui/src/app/main.rs:1430 msgid "Proton Terms of Service" msgstr "Nutzungsbedingungen von Proton" -#: crates/pdfs-gui/src/app/main.rs:1426 +#: crates/pdfs-gui/src/app/main.rs:1434 msgid "Proton Privacy Policy" msgstr "Datenschutzerklärung von Proton" -#: crates/pdfs-gui/src/app/main.rs:1431 +#: crates/pdfs-gui/src/app/main.rs:1439 msgid "Disclaimer" msgstr "Haftungsausschluss" -#: crates/pdfs-gui/src/app/main.rs:1435 +#: crates/pdfs-gui/src/app/main.rs:1443 msgid "" "This is an unofficial, community-built client. It is not affiliated with, " "endorsed by, or supported by Proton AG.\n" @@ -198,7 +198,7 @@ msgstr "" "bereitgestellt. Daten, deren Verlust nicht hinnehmbar ist, sollten " "zusätzlich gesichert werden." -#: crates/pdfs-gui/src/app/main.rs:1443 +#: crates/pdfs-gui/src/app/main.rs:1451 msgid "" "Places are named with data from GeoNames, licensed under GeoNames, lizenziert unter CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -218,7 +218,7 @@ msgstr "" "href=\"https://www.naturalearthdata.com/\">Natural Earth gezeichnet, die " "gemeinfrei sind." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under CC BY 4.0." +"This is an unofficial, community-built client. It is not affiliated with, " +"endorsed by, or supported by Proton AG.\n" +"\n" +"“Proton” and “Proton Drive” are trademarks of Proton AG, used here only to " +"describe the service this software connects to. Your use of Proton Drive is " +"governed by Proton's own terms of service and privacy policy.\n" +"\n" +"This software is provided “as is”, without warranty of any kind. Keep a copy " +"of any data you cannot afford to lose." msgstr "" -"Places are named with data from GeoNames, licensed under CC BY 4.0." +"This is an unofficial, community-built client. It is not affiliated with, " +"endorsed by, or supported by Proton AG.\n" +"\n" +"“Proton” and “Proton Drive” are trademarks of Proton AG, used here only to " +"describe the service this software connects to. Your use of Proton Drive is " +"governed by Proton's own terms of service and privacy policy.\n" +"\n" +"This software is provided “as is”, without warranty of any kind. Keep a copy " +"of any data you cannot afford to lose." #: crates/pdfs-gui/src/app/main.rs:1451 msgid "" +"Places are named with data from GeoNames, licensed under CC BY 4.0." +msgstr "" +"Places are named with data from GeoNames, licensed under CC BY 4.0." + +#: crates/pdfs-gui/src/app/main.rs:1459 +msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " "public domain." @@ -215,7 +215,7 @@ msgstr "" "\">Natural Earth land outlines and country borders, which are in the " "public domain." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames, con licencia CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -216,7 +216,7 @@ msgstr "" "fronteras de países de Natural " "Earth, que son de dominio público." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames, sous licence CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -217,7 +217,7 @@ msgstr "" "frontières des pays de Natural " "Earth, qui sont dans le domaine public." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames, con licenza CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -215,7 +215,7 @@ msgstr "" "confini nazionali di Natural " "Earth, che sono di pubblico dominio." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames, gelicentieerd onder CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -216,7 +216,7 @@ msgstr "" "href=\"https://www.naturalearthdata.com/\">Natural Earth, die in het " "publieke domein vallen." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the \n" "Language-Team: LANGUAGE \n" @@ -60,7 +60,7 @@ msgstr "" msgid "%A, %B %-d, %Y, %H:%M" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:926 +#: crates/pdfs-gui/src/app/main.rs:934 #: crates/pdfs-gui/src/app/pages/activity_text.rs:543 #: crates/pdfs-gui/src/app/pages/browser.rs:473 #: crates/pdfs-gui/src/app/pages/browser.rs:880 @@ -73,37 +73,37 @@ msgstr "" msgid "My files" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:927 crates/pdfs-gui/src/app/main.rs:1608 +#: crates/pdfs-gui/src/app/main.rs:935 crates/pdfs-gui/src/app/main.rs:1616 #: crates/pdfs-gui/src/app/pages/albums.rs:636 #: crates/pdfs-gui/src/app/pages/photos.rs:929 #: crates/pdfs-gui/src/app/pages/places.rs:473 msgid "Photos" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:930 +#: crates/pdfs-gui/src/app/main.rs:938 #: crates/pdfs-gui/src/app/pages/shared.rs:168 #: crates/pdfs-gui/src/app/pages/shared.rs:493 msgid "Shared with me" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:935 +#: crates/pdfs-gui/src/app/main.rs:943 #: crates/pdfs-gui/src/app/pages/shared_by_me.rs:120 msgid "Shared by me" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:938 +#: crates/pdfs-gui/src/app/main.rs:946 #: crates/pdfs-gui/src/app/pages/devices.rs:140 #: crates/pdfs-gui/src/app/pages/devices.rs:505 msgid "Computers" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:939 +#: crates/pdfs-gui/src/app/main.rs:947 #: crates/pdfs-gui/src/app/pages/trash.rs:101 msgid "Trash" msgstr "" #. Translators: sidebar entry for the page listing this computer's synced folders. -#: crates/pdfs-gui/src/app/main.rs:941 +#: crates/pdfs-gui/src/app/main.rs:949 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:66 msgid "Sync" msgstr "" @@ -111,12 +111,12 @@ msgstr "" #. Translators: a failed action's toast. {what} says what failed, such as #. "Couldn't rename"; {detail} is the reason, usually untranslated text #. from the mount service. -#: crates/pdfs-gui/src/app/main.rs:1291 +#: crates/pdfs-gui/src/app/main.rs:1299 #: crates/pdfs-gui/src/app/pages/photo_viewer.rs:915 #: crates/pdfs-gui/src/app/pages/preferences_apps.rs:284 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:175 #: crates/pdfs-gui/src/app/pages/preferences_sync.rs:212 -#: crates/pdfs-gui/src/app/pages/sync_exclusions.rs:391 +#: crates/pdfs-gui/src/app/pages/sync_exclusions.rs:401 #: crates/pdfs-gui/src/app/pages/takeout.rs:891 #: crates/pdfs-gui/src/app/widgets/ignore_dialog.rs:182 #: crates/pdfs-gui/src/app/widgets/ignore_dialog.rs:289 @@ -124,31 +124,31 @@ msgstr "" msgid "{what}: {detail}" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1314 +#: crates/pdfs-gui/src/app/main.rs:1322 msgid "You're offline" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1315 +#: crates/pdfs-gui/src/app/main.rs:1323 msgid "That's not there any more" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1316 +#: crates/pdfs-gui/src/app/main.rs:1324 msgid "You don't have access to that" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1317 +#: crates/pdfs-gui/src/app/main.rs:1325 msgid "Something changed this first" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1318 +#: crates/pdfs-gui/src/app/main.rs:1326 msgid "Your Proton Drive is full" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1405 +#: crates/pdfs-gui/src/app/main.rs:1413 msgid "Proton Drive for Linux" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1413 +#: crates/pdfs-gui/src/app/main.rs:1421 msgid "" "Files-on-demand Proton Drive for the Linux desktop.\n" "\n" @@ -156,23 +156,23 @@ msgid "" "AG." msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1418 +#: crates/pdfs-gui/src/app/main.rs:1426 msgid "Source Code" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1422 +#: crates/pdfs-gui/src/app/main.rs:1430 msgid "Proton Terms of Service" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1426 +#: crates/pdfs-gui/src/app/main.rs:1434 msgid "Proton Privacy Policy" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1431 +#: crates/pdfs-gui/src/app/main.rs:1439 msgid "Disclaimer" msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1435 +#: crates/pdfs-gui/src/app/main.rs:1443 msgid "" "This is an unofficial, community-built client. It is not affiliated with, " "endorsed by, or supported by Proton AG.\n" @@ -185,21 +185,21 @@ msgid "" "of any data you cannot afford to lose." msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1443 +#: crates/pdfs-gui/src/app/main.rs:1451 msgid "" "Places are named with data from GeoNames, licensed under CC BY 4.0." msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " "public domain." msgstr "" -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames udostępnionych na licencji CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -219,7 +219,7 @@ msgstr "" "www.naturalearthdata.com/\">Natural Earth, które należą do domeny " "publicznej." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the GeoNames, licensed under GeoNames, licenciados sob CC BY 4.0." -#: crates/pdfs-gui/src/app/main.rs:1451 +#: crates/pdfs-gui/src/app/main.rs:1459 msgid "" "The places map is drawn from Natural Earth land outlines and country borders, which are in the " @@ -215,7 +215,7 @@ msgstr "" "fronteiras de países do Natural Earth, que são de domínio público." -#: crates/pdfs-gui/src/app/main.rs:1459 +#: crates/pdfs-gui/src/app/main.rs:1467 msgid "" "The street map, when turned on, comes from OpenFreeMap in the