mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-28 05:29:30 +08:00
Adjust chsrc_conclude()
This commit is contained in:
@@ -34,14 +34,17 @@ wr_winget_setsrc (char *option)
|
||||
chsrc_run ("winget source remove winget", RunOpt_Default);
|
||||
chsrc_run (xy_2strjoin ("winget source add winget ", source.url), RunOpt_Default);
|
||||
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
ProgMode_ChgType = ChgType_Auto;
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
void
|
||||
wr_winget_resetsrc (char *option)
|
||||
{
|
||||
chsrc_run ("winget source reset winget", RunOpt_Default);
|
||||
chsrc_conclude (NULL, SetsrcType_Auto);
|
||||
|
||||
ProgMode_ChgType = ChgType_Auto;
|
||||
chsrc_conclude (NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user