Skip to content

Commit

Permalink
Adding webui_browser_exist
Browse files Browse the repository at this point in the history
More inf: #431
  • Loading branch information
hassandraga committed Jun 25, 2024
1 parent acc77ce commit d0b013c
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 54 deletions.
9 changes: 9 additions & 0 deletions include/webui.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ WEBUI_EXPORT void webui_set_high_contrast(size_t window, bool status);
*/
WEBUI_EXPORT bool webui_is_high_contrast();

/**
* @brief Check if a web browser is installed.
*
* @return Returns True if the specified browser is available
*
* @example bool status = webui_browser_exist(Chrome);
*/
WEBUI_EXPORT bool webui_browser_exist(size_t browser);

/**
* @brief Wait until all opened windows get closed.
*
Expand Down
Loading

0 comments on commit d0b013c

Please sign in to comment.