fix sciter has_hwcodec

This commit is contained in:
csf 2022-09-16 21:55:51 +08:00
parent e32a019a29
commit 2e0f71fb35

View File

@ -28,6 +28,7 @@ use hbb_common::{
use crate::clipboard_file::*;
use crate::{
client::*,
ui_interface::has_hwcodec,
ui_session_interface::{InvokeUiSession, Session},
};
@ -440,6 +441,10 @@ impl SciterSession {
v
}
fn has_hwcodec(&self) -> bool {
has_hwcodec()
}
pub fn t(&self, name: String) -> String {
crate::client::translate(name)
}