From ebece70d000c1cca03ed3879f5e10ba6224ce254 Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 4 Jul 2023 22:36:12 -0700 Subject: [PATCH] Add OpenOnCivitAi command to Connected Models --- StabilityMatrix/CheckpointManagerPage.xaml | 4 ++++ StabilityMatrix/Models/CheckpointFile.cs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/StabilityMatrix/CheckpointManagerPage.xaml b/StabilityMatrix/CheckpointManagerPage.xaml index 17f729fae..46d1fb893 100644 --- a/StabilityMatrix/CheckpointManagerPage.xaml +++ b/StabilityMatrix/CheckpointManagerPage.xaml @@ -76,6 +76,10 @@ + + diff --git a/StabilityMatrix/Models/CheckpointFile.cs b/StabilityMatrix/Models/CheckpointFile.cs index e99607cb9..5bc144602 100644 --- a/StabilityMatrix/Models/CheckpointFile.cs +++ b/StabilityMatrix/Models/CheckpointFile.cs @@ -129,6 +129,12 @@ private async Task RenameAsync() throw; } } + + [RelayCommand] + private void OpenOnCivitAi() + { + ProcessRunner.OpenUrl($"https://civitai.com/models/{ConnectedModel.ModelId}"); + } // Loads image from path private async Task LoadPreviewImage()