mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
refactor: content tab styling (#7091)
* refactor: managed content card * fix: update filter pill styling to be chips-like * fix: modpack exporting * fixed: vanilla server projs + header * refactor: filters * refactor: detect external file icons + other metadata inside * refactor: support json5 metadata * fix: qa * fix: qa * fix: fmt + prepr * fix: fmt * fix: qa * fix: headers * feat: locking * fix: clippy * fix: qa * fix: frozen loc * fix: shared instances diff calc break * fix: env filter + remove categories
This commit is contained in:
@@ -46,6 +46,7 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
|
||||
instance_add_project_from_path,
|
||||
instance_is_file_on_modrinth,
|
||||
instance_toggle_disable_project,
|
||||
instance_set_project_locked,
|
||||
instance_remove_project,
|
||||
instance_update_managed_modrinth_version,
|
||||
instance_repair_managed_modrinth,
|
||||
@@ -702,6 +703,17 @@ pub async fn instance_toggle_disable_project(
|
||||
.await?)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn instance_set_project_locked(
|
||||
instance_id: &str,
|
||||
project_path: &str,
|
||||
locked: bool,
|
||||
) -> Result<()> {
|
||||
theseus::instance::set_project_locked(instance_id, project_path, locked)
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn instance_remove_project(
|
||||
instance_id: &str,
|
||||
|
||||
Reference in New Issue
Block a user