The shop was a catalogue served over HTTP that the application fetched and
listed, which put a network round trip between a user and a plugin that was
almost always one file they already had. It also had to keep its catalogue
URLs in step with every release, since an entry that pointed at a missing
asset was indistinguishable from one that never worked.
A plugin is now distributed as a .fwspacm package: a ZIP archive holding a
plugin.json manifest and the shared library, which the user drops anywhere
on the window. The file is the distribution, so there is no catalogue to
publish, no network, and no catalogue URL setting to explain. The manifest
tells the user what they are about to run, and its checksum is verified
before anything is written, so a package whose library is not the one it
declares never reaches the plugin directory.
Qt exposes no public ZIP API, so the archive is read directly (central
directory plus zlib for the deflated entries) rather than through a private
header that could move between toolchains. The reader stays in the logic
layer: app-core-test still links no QtWidgets, and a unit test builds its
own archives to check both compression methods and every refusal path.
The settings screen was given a sidebar entry, but it is not a place to
browse from: the bar lists where the packages are, and preferences are
where you configure the application. It now opens from the Paramètres menu
and Ctrl+, and nowhere else.
Two consequences of it having no navigation button are handled rather than
left to chance: openSettingsPage() does the work a button would have done
(switch, reload, retitle, journal), and the sidebar unchecks itself on the
way in, since leaving the previous entry highlighted would point at the
wrong screen. Clicking a sidebar entry afterwards selects it as usual.
The preferences used to be spread across a menu entry and hardcoded paths,
so the user could not see them, let alone change them: where the journal
goes, whether a dropped Flatpak file is accepted, and when the app checks
its own version were all decided in code.
They now live in AppSettings, one model the rest of the app already reads,
and the new Settings screen only writes to it. Nothing keeps a second copy
of a value, so a change is visible everywhere at once — switching directory
moves the journal, unchecking drag & drop makes the window refuse the drop,
blocking the update has the manual check say why instead of silently doing
nothing.
The update block is deliberately limited to PacManager itself: blocking a
system package update is a decision the app has no business making.
The language setting installs a Qt catalogue and asks every widget to
retranslate. The interface is still written in French with QStringLiteral,
so no catalogue ships yet; a language with none is shown in the list but
disabled rather than silently doing nothing, and Qt Linguist stays optional
so the build does not depend on it.
The README only covers the outside of the project, so anyone touching the
core, the pages or the plugin contracts had to read the sources; the new
pages give each of those areas a single reference, including the plugin
shop that was just added.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>