Expose default PDF application setting
This commit is contained in:
parent
2d7c95674c
commit
b3470dfded
|
|
@ -2245,7 +2245,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pdf-presenter"
|
||||
version = "0.1.79"
|
||||
version = "0.1.80"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue