Commit 13052025
Old Photo Deleter .
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package id.co.gtc.erhacam;
|
||||
|
||||
import Config.SomeCodes;
|
||||
import Database.PhotoCleaner;
|
||||
import SecureDongle.SecureDongle;
|
||||
import SecureDongle.SecureDongleEvent;
|
||||
import javafx.application.Application;
|
||||
@@ -21,6 +22,8 @@ import static Config.SomeCodes.config;
|
||||
|
||||
|
||||
public class MainApplication extends Application {
|
||||
|
||||
PhotoCleaner photoCleaner;
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
|
||||
@@ -31,6 +34,7 @@ public class MainApplication extends Application {
|
||||
System.out.println("Thread: " + thread.getName()+", State: " + thread.getState()+", Daemon: " + thread.isDaemon());
|
||||
//thread.interrupt();
|
||||
}
|
||||
if (photoCleaner!=null) photoCleaner.Stop();
|
||||
}));
|
||||
|
||||
|
||||
@@ -46,7 +50,7 @@ public class MainApplication extends Application {
|
||||
Screen screen = Screen.getPrimary();
|
||||
Rectangle2D screenbound = screen.getBounds();
|
||||
Scene scene = new Scene(fxmlLoader.load(), screenbound.getWidth(), screenbound.getHeight());
|
||||
stage.setTitle("MultiCam Capture App for ERHA 09052025-001");
|
||||
stage.setTitle("MultiCam Capture App for ERHA 13052025-001");
|
||||
stage.setScene(scene);
|
||||
stage.setResizable(true);
|
||||
stage.setMaximized(true);
|
||||
@@ -82,6 +86,9 @@ public class MainApplication extends Application {
|
||||
});
|
||||
sd.StartMonitor();
|
||||
|
||||
photoCleaner = new PhotoCleaner(90);
|
||||
photoCleaner.Start();
|
||||
|
||||
} else {
|
||||
ShowAlert(Alert.AlertType.ERROR, "Secure Dongle UserID not valid", "Secure Dongle UserID not valid", "Secure Dongle UserID not valid");
|
||||
Logger.error("Secure Dongle UserID not valid");
|
||||
|
||||
Reference in New Issue
Block a user