mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
add second fake event
Signed-off-by: Armin Schrenk <armin.schrenk@skymatic.de>
This commit is contained in:
@@ -11,6 +11,7 @@ import org.cryptomator.cryptofs.CryptoFileSystemProvider;
|
||||
import org.cryptomator.cryptofs.DirStructure;
|
||||
import org.cryptomator.cryptofs.common.Constants;
|
||||
import org.cryptomator.cryptofs.event.BrokenDirFileEvent;
|
||||
import org.cryptomator.cryptofs.event.ConflictResolvedEvent;
|
||||
import org.cryptomator.integrations.mount.MountService;
|
||||
import org.cryptomator.ui.addvaultwizard.AddVaultWizardComponent;
|
||||
import org.cryptomator.ui.common.FxController;
|
||||
@@ -211,6 +212,7 @@ public class VaultListController implements FxController {
|
||||
@FXML
|
||||
private void toggleMenu() {
|
||||
notificationRadar.getEventsRequiringNotification().add(new BrokenDirFileEvent(Path.of("C:\\Your\\Momma\\Does\\Things")));
|
||||
notificationRadar.getEventsRequiringNotification().add(new ConflictResolvedEvent(Path.of("a"), Path.of("b"), Path.of("c"), Path.of("d")));
|
||||
appWindows.showNotification();
|
||||
/*
|
||||
if (addVaultContextMenu.isShowing()) {
|
||||
|
||||
@@ -26,8 +26,8 @@ import java.util.concurrent.ExecutorService;
|
||||
@NotificationScoped
|
||||
public class NotificationController implements FxController {
|
||||
|
||||
private static final String LOREM_IPSUM = """
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam""";
|
||||
private static final String LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam";
|
||||
private static final String LOREM_BOB = "Let's do it again then, what the heck. Let that brush dance around there and play. In your world you have total and absolute power.";
|
||||
|
||||
private final Stage window;
|
||||
private final SimpleListProperty<FilesystemEvent> notificationsProp;
|
||||
@@ -61,11 +61,16 @@ public class NotificationController implements FxController {
|
||||
|
||||
private void adjustTexts(ObservableValue<? extends FilesystemEvent> observable, FilesystemEvent oldEvent, FilesystemEvent newEvent) {
|
||||
switch (newEvent) {
|
||||
default -> {
|
||||
case BrokenDirFileEvent bdfe -> {
|
||||
message.set("BABA");
|
||||
description.set(LOREM_IPSUM);
|
||||
actionText.set("ACTION");
|
||||
}
|
||||
default -> {
|
||||
message.set("YAGA");
|
||||
description.set(LOREM_BOB);
|
||||
actionText.set("ACTION2");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user