mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Add API to set the XDG app id
ChangeLog: Added function to set the XDG app id on Wayland/X11. This needs to be added with respective function names in the language sections. Fixes #1332
This commit is contained in:
parent
10edaaa7f1
commit
1888e58735
11 changed files with 102 additions and 1 deletions
|
@ -214,3 +214,10 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|||
}
|
||||
#[cfg(feature = "esp-backtrace")]
|
||||
use esp_backtrace as _;
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_set_xdg_app_id(_app_id: &SharedString) {
|
||||
#[cfg(feature = "i-slint-backend-selector")]
|
||||
i_slint_backend_selector::with_global_context(|ctx| ctx.set_xdg_app_id(_app_id.clone()))
|
||||
.unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue