1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

Taskbar/QuickLaunchWidget: Properly save Quick Launch Entries

The entries in the QuickLaunchWidget are now saved properly. This means
that the format with which they are saved needed to be changed, since we
now also need to store the order of the entries. To do this, the entries
are now saved using the following value format: "<index>:<path>". When
loading, we simply parse this structure out and sort by the index,
before parsing the path into `QuickLaunchEntry`s.
This commit is contained in:
david072 2023-11-05 12:13:19 +01:00 committed by Andreas Kling
parent 84340c4ca7
commit 13b98d01c0
3 changed files with 102 additions and 62 deletions

View file

@ -1,8 +1,8 @@
[Clock]
TimeFormat=%T
[QuickLaunch]
Browser=Browser.af
Terminal=Terminal.af
FileManager=FileManager.af
TextEditor=TextEditor.af
[QuickLaunch_Entries]
Browser=0:Browser.af
FileManager=1:FileManager.af
Terminal=2:Terminal.af
TextEditor=3:TextEditor.af