diff --git a/src/chsrc-framework.h b/src/chsrc-framework.h index df567dd..2d1c2a9 100644 --- a/src/chsrc-framework.h +++ b/src/chsrc-framework.h @@ -5,11 +5,12 @@ * File Authors : Aoran Zeng * | Heng Guo <2085471348@qq.com> * Contributors : Peng Gao - * | Happy Game + * | Happy Game + * | * Created On : <2023-08-29> - * Last Modified : <2024-11-04> + * Last Modified : <2024-11-08> * - * chsrc 框架 + * chsrc framework * ------------------------------------------------------------*/ #include "xy.h" @@ -820,7 +821,13 @@ chsrc_conclude (SourceInfo *source, const char *last_word) { split_between_source_changing_process; - if (xy_streql (SetsrcType_Auto, last_word)) + if ((ProgMode_CMD_Reset == true) || xy_streql (SetsrcType_Reset, last_word)) + { + // source_is_upstream (source) + char *msg = CliOpt_InEnglish ? "Has been reset to the upstream default source" : "已重置为上游默认源"; + chsrc_log (purple (msg)); + } + else if (xy_streql (SetsrcType_Auto, last_word)) { if (source) { @@ -843,12 +850,6 @@ chsrc_conclude (SourceInfo *source, const char *last_word) chsrc_log (msg); } } - else if (xy_streql (SetsrcType_Reset, last_word)) - { - // source_is_upstream (source) - char *msg = CliOpt_InEnglish ? "Has been reset to the upstream default source" : "已重置为上游默认源"; - chsrc_log (purple (msg)); - } else if (xy_streql (SetsrcType_SemiAuto, last_word)) { if (source)