mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
C++: set_xdg_app_id: use std::string_view in the API
This commit is contained in:
parent
44df136c4f
commit
917b0c88f7
1 changed files with 3 additions and 2 deletions
|
@ -1525,10 +1525,11 @@ void blocking_invoke_from_event_loop(Functor f)
|
|||
/// Sets the application id for use on Wayland or X11 with
|
||||
/// [xdg](https://specifications.freedesktop.org/desktop-entry-spec/latest/) compliant window
|
||||
/// managers. This must be set before the window is shown.
|
||||
inline void set_xdg_app_id(const SharedString &xdg_app_id)
|
||||
inline void set_xdg_app_id(std::string_view xdg_app_id)
|
||||
{
|
||||
private_api::assert_main_thread();
|
||||
cbindgen_private::slint_set_xdg_app_id(&xdg_app_id);
|
||||
SharedString s = xdg_app_id;
|
||||
cbindgen_private::slint_set_xdg_app_id(&s);
|
||||
}
|
||||
|
||||
} // namespace slint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue