Browse Source

Improve naming, avoid shadowing

Antoine James Tournepiche 1 year ago
parent
commit
3dce175f94

+ 5 - 5
src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java

@@ -173,12 +173,12 @@ public class VaultListController implements FxController {
 		}
 	}
 
-	private void toggleVaultLockStatus(Vault selectedVault) {
-		if (selectedVault.isLocked()) {
-			appWindows.startUnlockWorkflow(selectedVault, mainWindow);
+	private void toggleVaultLockStatus(Vault vault) {
+		if (vault.isLocked()) {
+			appWindows.startUnlockWorkflow(vault, mainWindow);
 		}
-		if (selectedVault.isUnlocked()) {
-			appWindows.startLockWorkflow(selectedVault, mainWindow);
+		if (vault.isUnlocked()) {
+			appWindows.startLockWorkflow(vault, mainWindow);
 		}
 	}