mirror of
https://github.com/sean2077/obsidian-dynamic-theme-background.git
synced 2026-07-22 06:44:57 +00:00
fix: Pass selected API ID to getRandomWallpapers method
This commit is contained in:
parent
d7a13ea9ec
commit
f385382877
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ export default class DynamicThemeBackgroundPlugin extends Plugin {
|
|||
const loadingNotice = new Notice(t("notice_api_fetching", { apiName: selectedApi.getName() }), 0);
|
||||
|
||||
// 使用选中的API获取壁纸
|
||||
const wallpaperImages = await apiManager.getRandomWallpapers();
|
||||
const wallpaperImages = await apiManager.getRandomWallpapers(selectedApi.getId());
|
||||
|
||||
// 关闭加载提示
|
||||
loadingNotice.hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue