diff --git a/Cargo.lock b/Cargo.lock index 4430d4d..05b1c6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2245,7 +2245,7 @@ dependencies = [ [[package]] name = "pdf-presenter" -version = "0.1.79" +version = "0.1.80" dependencies = [ "bytemuck", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 3a33f77..0016c8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"] resolver = "3" [workspace.package] -version = "0.1.79" +version = "0.1.80" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter" diff --git a/crates/pdf-presenter/src/presenter_ui.rs b/crates/pdf-presenter/src/presenter_ui.rs index 726b51e..1002454 100644 --- a/crates/pdf-presenter/src/presenter_ui.rs +++ b/crates/pdf-presenter/src/presenter_ui.rs @@ -2489,12 +2489,13 @@ fn menu(ui: &mut Ui, s: &mut Studio) { }); ui.separator(); #[cfg(target_os = "windows")] - ui.collapsing(if s.settings.language.french() { "Intégration Windows" } else { "Windows integration" }, |ui| { - ui.label(if s.settings.language.french() { "Enregistre l’application et son icône pour les fichiers PDF, sans droits administrateur." } else { "Register the app and its icon for PDF files without administrator rights." }); - if ui.button(if s.settings.language.french() { "Choisir comme application PDF…" } else { "Choose as PDF app…" }).clicked() { + ui.group(|ui| { + ui.strong(if s.settings.language.french() { "Application PDF par défaut" } else { "Default PDF application" }); + ui.label(if s.settings.language.french() { "Enregistre PDF Presenter et son icône pour les fichiers PDF de votre compte Windows." } else { "Register PDF Presenter and its icon for PDF files in your Windows account." }); + if ui.button(if s.settings.language.french() { "Définir comme application PDF par défaut…" } else { "Set as default PDF app…" }).clicked() { s.actions.push(Action::RegisterPdfAssociation); } - ui.small(if s.settings.language.french() { "Windows ouvre Applications par défaut pour confirmer votre choix." } else { "Windows opens Default Apps so you can confirm the choice." }); + ui.small(if s.settings.language.french() { "Windows ouvrira Applications par défaut : sélectionnez PDF Presenter pour .pdf afin de confirmer." } else { "Windows will open Default Apps; select PDF Presenter for .pdf to confirm." }); }); #[cfg(target_os = "windows")] ui.separator(); diff --git a/docs/changelog.md b/docs/changelog.md index 5f3c704..4ff0199 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,14 @@ ## Unreleased +### 0.1.80 + +- Put a visible **Set as default PDF app…** action directly in Preferences on + Windows. It registers the portable executable and PDF icon for the current user, + then opens Default Apps for Windows' required confirmation. +- Formatting, Clippy, workspace tests, Python helper tests and a Windows-target type + check pass. Selecting the association in Windows remains a physical acceptance check. + ### 0.1.79 - Name the two display roles **Presenter** and **Slides** throughout the user-facing diff --git a/docs/user-guide.md b/docs/user-guide.md index 6676551..76250f8 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -15,8 +15,8 @@ folder in a permanent location and run `python3 install-linux-launcher.py` there Python is only needed for this optional installer; no administrator privileges are required. -On Windows, use **Menu → Preferences → Windows integration → Choose as PDF -app…** to register the portable executable for the current user. Windows opens +On Windows, use **Menu → Preferences → Set as default PDF app…** to register the +portable executable for the current user. Windows opens Default Apps for the required confirmation. Once PDF Presenter is selected for `.pdf`, Explorer uses the icon embedded in `pdf-presenter.exe` for PDF files. Keep the extracted folder in a permanent location; repeat the action after moving it.