mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 14:10:29 +00:00
feat: Visualize downloaded models (#543)
* feat: Visualize downloaded models * Simplify GeneralSettings access
This commit is contained in:
parent
fcd0808111
commit
9bd7e6e83a
16 changed files with 135 additions and 89 deletions
|
|
@ -62,14 +62,12 @@ public class GenerateGitCommitMessageAction extends AnAction {
|
|||
@Override
|
||||
public void update(@NotNull AnActionEvent event) {
|
||||
var commitWorkflowUi = event.getData(VcsDataKeys.COMMIT_WORKFLOW_UI);
|
||||
var selectedService = GeneralSettings.getCurrentState().getSelectedService();
|
||||
if (selectedService == YOU || commitWorkflowUi == null) {
|
||||
if (GeneralSettings.isSelected(YOU) || commitWorkflowUi == null) {
|
||||
event.getPresentation().setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
var callAllowed = CompletionRequestService.isRequestAllowed(
|
||||
GeneralSettings.getCurrentState().getSelectedService());
|
||||
var callAllowed = CompletionRequestService.isRequestAllowed();
|
||||
event.getPresentation().setEnabled(callAllowed
|
||||
&& new CommitWorkflowChanges(commitWorkflowUi).isFilesSelected());
|
||||
event.getPresentation().setText(CodeGPTBundle.get(callAllowed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue