Fixed LockBTN when no DB is loaded
This commit is contained in:
parent
786586c382
commit
2a59156b0b
|
@ -84,6 +84,7 @@ public class Main extends Application
|
||||||
// config.xml NOT found, first start of app
|
// config.xml NOT found, first start of app
|
||||||
System.out.println("keine XML gefunden!");
|
System.out.println("keine XML gefunden!");
|
||||||
mwc.blockUI(true); // disable UI elements that need DB
|
mwc.blockUI(true); // disable UI elements that need DB
|
||||||
|
mwc.blockUnlock();
|
||||||
File dir = new File(System.getProperty("user.home") + "/bin/jFxKasse");
|
File dir = new File(System.getProperty("user.home") + "/bin/jFxKasse");
|
||||||
dir.mkdir(); // Create new Subfolder
|
dir.mkdir(); // Create new Subfolder
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,8 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.omg.CORBA.PUBLIC_MEMBER;
|
||||||
|
|
||||||
import com.jfoenix.controls.JFXTextField;
|
import com.jfoenix.controls.JFXTextField;
|
||||||
|
|
||||||
import javafx.beans.value.ChangeListener;
|
import javafx.beans.value.ChangeListener;
|
||||||
|
@ -409,6 +411,8 @@ public class MainWindowController
|
||||||
getSelectedCat();
|
getSelectedCat();
|
||||||
createNewJob();
|
createNewJob();
|
||||||
|
|
||||||
|
btnLock.setDisable(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
|
@ -1252,6 +1256,12 @@ public class MainWindowController
|
||||||
public void updateTimeLabel()
|
public void updateTimeLabel()
|
||||||
{
|
{
|
||||||
labelTime.setText("Uhrzeit: " + getSystemTime());
|
labelTime.setText("Uhrzeit: " + getSystemTime());
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void blockUnlock() {
|
||||||
|
btnLock.setDisable(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue