Skip to content

Commit a9c24b4

Browse files
authored
Fix: Fixed an issue with exporting tags (#15011)
1 parent 9949da6 commit a9c24b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Files.App/Services/Settings/FileTagsSettingsService.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ public override bool ImportSettings(object import)
148148

149149
public override object ExportSettings()
150150
{
151-
// Return string in Json format
152-
return JsonSettingsSerializer.SerializeToJson(FileTagList);
151+
var settings = new Dictionary<string, object>
152+
{
153+
{ "FileTagList", FileTagList }
154+
};
155+
156+
// Serialize settings to JSON format
157+
return JsonSettingsSerializer.SerializeToJson(settings);
153158
}
154159

155160
private int GetTagIndex(string uid)

0 commit comments

Comments
 (0)