forked from akai/readest
feat(settings): add an option to set auto screen brightness (#2297)
This commit is contained in:
@@ -172,13 +172,6 @@ export async function getScreenBrightness(): Promise<GetScreenBrightnessResponse
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getExternalSDCardPath(): Promise<GetExternalSDCardPathResponse> {
|
||||
const result = await invoke<GetExternalSDCardPathResponse>(
|
||||
'plugin:native-bridge|get_external_sdcard_path',
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function setScreenBrightness(
|
||||
request: SetScreenBrightnessRequest,
|
||||
): Promise<SetScreenBrightnessResponse> {
|
||||
@@ -190,3 +183,10 @@ export async function setScreenBrightness(
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getExternalSDCardPath(): Promise<GetExternalSDCardPathResponse> {
|
||||
const result = await invoke<GetExternalSDCardPathResponse>(
|
||||
'plugin:native-bridge|get_external_sdcard_path',
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user