Skip to content
Verified Commit d7cd2162 authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

FlatpakPermissionModel: Use enum for list section headers, move i18n to QML

The point of this change is that now we don't have to "unmap" translated
header text when adding new permissions from sections buttons; and also
this new more granular enum can be reused for Basic/Advanced split, so
the old SectionType enum could be dropped along with all its usages.

Unfortunately, the new type could not be used directly for Q_INVOKABLE
methods and Q_SLOTS, so we still need to fallback to int. Another caveat
is that ListView automatically always converts section data to string.
parent 2d042be8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment