Add argument option

This commit is contained in:
Aoran Zeng 2025-08-09 21:35:08 +08:00
parent 16d643a8ee
commit 2d358fbc6a
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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,