feat: rename edit as view

This commit is contained in:
GyDi committed 2022-01-19 23:58:34 +08:00
1 parent aa2abb92ef
commit 7542f065a1
4 files changed
+8 -8

No files matched your search

+1 -1
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![]);
+1 -1
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,