Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Commit

Permalink
feat: Return folder_id in creation method
Browse files Browse the repository at this point in the history
  • Loading branch information
Rirusha committed Dec 20, 2024
1 parent 1057ef3 commit 5bb9f41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/folders.vala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace Foldy {
set_folders (builder.end ());
}

public static void create_folder (
public static string create_folder (
string? folder_id,
string folder_name = "Unnamed Folder",
string[] apps = {},
Expand All @@ -83,6 +83,8 @@ namespace Foldy {
Folder.set_folder_translate (fid, translate);

sync ();

return fid;
}

public static bool folder_exists (string folder_id) {
Expand Down

0 comments on commit 5bb9f41

Please sign in to comment.