diff --git a/src/framework/core.c b/src/framework/core.c index 290073c..96af6ef 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -1092,9 +1092,9 @@ chsrc_confirm_source (Source_t *source) Source_t -chsrc_yield_source_and_confirm (Target_t t) +chsrc_yield_source_and_confirm (Target_t *t, char *option) { - Source_t source = chsrc_yield_source(&t); + Source_t source = chsrc_yield_source(t, option); chsrc_confirm_source(&source); return source; } diff --git a/src/recipe/ware/Flathub.c b/src/recipe/ware/Flathub.c index 5ab082d..5f29e48 100644 --- a/src/recipe/ware/Flathub.c +++ b/src/recipe/ware/Flathub.c @@ -73,8 +73,8 @@ wr_flathub_getsrc (char *option) void wr_flathub_setsrc (char *option) { - // chsrc_yield_source_and_confirm (wr_flathub); - Source_t source; + use_this(wr_flathub); + Source_t source = chsrc_yield_source_and_confirm (this, option); chsrc_alert2 ("若出现问题,可先调用以下命令:"); char *note = xy_strjoin (3,