Add toggles for text and image monitors

release
Hammy 3 years ago
parent 981a48fc6c
commit bb42c7c1db

@ -66,6 +66,14 @@ abstract class ClipboardListener {
eventsListener.remove(clipboardEventListener); eventsListener.remove(clipboardEventListener);
} }
void toggleTextMonitored() {
this.textMonitored = !textMonitored;
}
void toggleImagesMonitored() {
this.imagesMonitored = !imagesMonitored;
}
boolean isImagesMonitored() { boolean isImagesMonitored() {
return imagesMonitored; return imagesMonitored;
} }

@ -62,6 +62,30 @@ public class MyClipboard {
clipboardListener.removeEventListener(clipboardEventListener); clipboardListener.removeEventListener(clipboardEventListener);
} }
public void toggleTextMonitored() {
clipboardListener.toggleTextMonitored();
}
public void toggleImagesMonitored() {
clipboardListener.toggleImagesMonitored();
}
public boolean isImagesMonitored() {
return clipboardListener.isImagesMonitored();
}
public void setImagesMonitored(boolean imagesMonitored) {
clipboardListener.setImagesMonitored(imagesMonitored);
}
public boolean isTextMonitored() {
return clipboardListener.isTextMonitored();
}
public void setTextMonitored(boolean textMonitored) {
clipboardListener.setTextMonitored(textMonitored);
}
private static boolean isMac() { private static boolean isMac() {
return SystemUtils.IS_OS_MAC; return SystemUtils.IS_OS_MAC;
} }

Loading…
Cancel
Save