mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +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:
parent
84340c4ca7
commit
13b98d01c0
3 changed files with 102 additions and 62 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue