Skip to content

Commit 9fbb117

Browse files
committed
Fix run progress item location
1 parent 4122593 commit 9fbb117

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/com/github/introfog/gitwave/controller/main/MainController.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public void initialize(FxmlStageHolder fxmlStageHolder) {
8181
primaryStage.close();
8282
};
8383
});
84+
switchRunButton(false);
85+
8486
directoryTabController = new DirectoryTabController(fxmlStageHolder, directory);
8587
parametersTabController = new ParametersTabController(fxmlStageHolder, parametersTable, parametersText);
8688
commandTabController = new CommandTabController(fxmlStageHolder, command, description, save,
@@ -153,8 +155,9 @@ private void switchRunButton(boolean inProgress) {
153155
}
154156

155157
private Task<Void> createRunCommandTask(File directoryToRunIn) {
156-
return new Task<Void>() {
157-
@Override protected Void call() {
158+
return new Task<>() {
159+
@Override
160+
protected Void call() {
158161
switchRunButton(true);
159162
final File scriptFile = CommandExecutor.searchGitRepositoriesAndCreateScriptFile(directoryToRunIn,
160163
commandTabController.getCommandWithParameters());

src/main/resources/com/github/introfog/gitwave/view/main.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<Font name="Verdana" size="12.0" />
133133
</font></Hyperlink>
134134
<Separator layoutY="17.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
135-
<ProgressIndicator fx:id="runProgress" layoutX="345.0" layoutY="9.0" prefHeight="20.0" prefWidth="20.0" visible="false" />
135+
<ProgressIndicator fx:id="runProgress" layoutX="345.0" layoutY="9.0" prefHeight="20.0" prefWidth="20.0" AnchorPane.bottomAnchor="20.0" AnchorPane.rightAnchor="85.0" />
136136
</children>
137137
</AnchorPane>
138138
</children>

0 commit comments

Comments
 (0)