mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
core/desktopentry: preserve desktop action order
This commit is contained in:
parent
5721955686
commit
c030300191
3 changed files with 26 additions and 12 deletions
|
|
@ -43,7 +43,7 @@ struct ParsedDesktopEntryData {
|
|||
QVector<QString> categories;
|
||||
QVector<QString> keywords;
|
||||
QHash<QString, QString> entries;
|
||||
QHash<QString, DesktopActionData> actions;
|
||||
QVector<DesktopActionData> actions;
|
||||
};
|
||||
|
||||
/// A desktop entry. See @@DesktopEntries for details.
|
||||
|
|
@ -164,10 +164,10 @@ public:
|
|||
// clang-format on
|
||||
|
||||
private:
|
||||
void updateActions(const QHash<QString, DesktopActionData>& newActions);
|
||||
void updateActions(const QVector<DesktopActionData>& newActions);
|
||||
|
||||
ParsedDesktopEntryData state;
|
||||
QHash<QString, DesktopAction*> mActions;
|
||||
QVector<DesktopAction*> mActions;
|
||||
|
||||
friend class DesktopAction;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue