feat: rename edit as view

This commit is contained in:
GyDi
2022-01-19 23:58:34 +08:00
parent 4f02c373c2
commit 0d5bfc0997
4 changed files with 8 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ pub fn patch_profile(
/// run vscode command to edit the profile
#[tauri::command]
pub fn edit_profile(index: usize, profiles_state: State<'_, ProfilesState>) -> Result<(), String> {
pub fn view_profile(index: usize, profiles_state: State<'_, ProfilesState>) -> Result<(), String> {
let mut profiles = profiles_state.0.lock().unwrap();
let items = profiles.items.take().unwrap_or(vec![]);

View File

@@ -80,7 +80,7 @@ fn main() -> std::io::Result<()> {
cmds::get_verge_config,
cmds::patch_verge_config,
// profile
cmds::edit_profile,
cmds::view_profile,
cmds::patch_profile,
cmds::import_profile,
cmds::update_profile,