mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Adjust chsrc_conclude()
This commit is contained in:
@@ -83,14 +83,16 @@ pl_dart_flutter_setsrc (char *option)
|
||||
chsrc_append_to_file (w, bashrc);
|
||||
}
|
||||
}
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
|
||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pl_dart_flutter_resetsrc (char *option)
|
||||
{
|
||||
pl_dart_flutter_setsrc (SetsrcType_Reset);
|
||||
pl_dart_flutter_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -79,14 +79,16 @@ pl_dart_setsrc (char *option)
|
||||
chsrc_append_to_file (w, bashrc);
|
||||
}
|
||||
}
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
|
||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pl_dart_resetsrc (char *option)
|
||||
{
|
||||
pl_dart_setsrc (SetsrcType_Reset);
|
||||
pl_dart_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user