Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/apps/desktop/src/computer_use/desktop_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2290,6 +2290,7 @@ impl ComputerUseHost for DesktopComputerUseHost {
&self,
query: UiElementLocateQuery,
) -> BitFunResult<UiElementLocateResult> {
Self::ensure_input_automation_allowed()?;
Err(BitFunError::Tool(
"Native UI element (accessibility) lookup is not avaliable on this platform"
.to_string(),
Expand Down
4 changes: 2 additions & 2 deletions src/apps/desktop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ impl Default for OhosPlatform {
fn default() -> Self {
Self {
version: "6.0.0".to_string(),
devic_type: "2in".to_string(),
devic_type: "2in1".to_string(),
api_level: 12,
feature: vec![
"webview".to_string(),
"web_view".to_string(),
"file_system".to_string(),
"network".to_string(),
"storage".to_string(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export const setRemoteConnectDisclaimerAgreed = (): void => {
storage.setItem(REMOTE_CONNECT_DISCLAIMER_KEY, 'true');
} catch {
// Ignore storage failures and fall back to in-memory state.
console.error('setRemoteConnectDisclaimerAgreed setItem error');
}
};
2 changes: 1 addition & 1 deletion src/web-ui/src/infrastructure/i18n/store/i18nStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import type { LocaleId, I18nNamespace, I18nState, I18nActions } from '../types';
import { DEFAULT_LOCALE, DEFAULT_FALLBACK_LOCALE } from '../presets';
import { storage } from '@/shared';
import { storage } from '@/shared/utils/storageAdapter';


const initialState: I18nState = {
Expand Down
Loading