Skip to content

Commit

Permalink
correct bug caused by opening the plugin with a non valid prompt creator
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Dec 4, 2024
1 parent 906fdca commit cba7bef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ai/nets/samj/gui/MainGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public MainGUI(List<SAMModel> modelList, ConsumerInterface consumer) {
createListeners();
this.consumer = consumer;
this.consumer.setCallback(consumerCallback);
consumerCallback.validPromptChosen(consumer.isValidPromptSelected());
cmbImages = ImageSelectionOnlyComboBox.create(this.consumer, imageListener);

if (modelList == null) this.modelList = DEFAULT_MODEL_LIST;
Expand Down Expand Up @@ -160,6 +159,8 @@ public MainGUI(List<SAMModel> modelList, ConsumerInterface consumer) {

// Set the initial size of the frame
setSize(MAIN_HORIZONTAL_SIZE, MAIN_VERTICAL_SIZE); // Width x Height

consumerCallback.validPromptChosen(consumer.isValidPromptSelected());

this.addWindowListener(new WindowAdapter() {
@Override
Expand Down

0 comments on commit cba7bef

Please sign in to comment.