feat: add custom prompt box for screenshots

This commit is contained in:
tux
2025-07-02 23:50:31 +05:30
parent 5683f7cce1
commit e07f507db1
5 changed files with 13 additions and 9 deletions

View File

@@ -13,13 +13,15 @@ public partial class SettingsUserControl : UserControl
ModelTextBox.Text = InMemoryDb.Obj.SettingsManager.Settings.Model;
ApiUrlTextBox.Text = InMemoryDb.Obj.SettingsManager.Settings.ApiURL;
ApiKeyTextBox.Text = InMemoryDb.Obj.SettingsManager.Settings.ApiKey;
ScreenshotPromptTextBox.Text = InMemoryDb.Obj.SettingsManager.Settings.ScreenshotPrompt;
}
private void SaveSettingsBtn_OnClick(object? sender, RoutedEventArgs e)
{
InMemoryDb.Obj.SaveSettings(new AppSettings()
{
ApiKey = ApiKeyTextBox.Text, ApiURL = ApiUrlTextBox.Text, Model = ModelTextBox.Text
ApiKey = ApiKeyTextBox.Text, ApiURL = ApiUrlTextBox.Text, Model = ModelTextBox.Text,
ScreenshotPrompt = ScreenshotPromptTextBox.Text
});
}
}