forked from j62/ctbrec
Don't show previews, if disabled
This commit is contained in:
parent
335233f473
commit
f5a302337f
|
@ -6,6 +6,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import ctbrec.Config;
|
||||||
import ctbrec.ui.controls.StreamPreview;
|
import ctbrec.ui.controls.StreamPreview;
|
||||||
import javafx.application.Platform;
|
import javafx.application.Platform;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
|
@ -52,7 +53,7 @@ public class PreviewPopupHandler implements EventHandler<MouseEvent> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(MouseEvent event) {
|
public void handle(MouseEvent event) {
|
||||||
if(!isInPreviewColumn(event)) {
|
if(!isInPreviewColumn(event) || !Config.getInstance().getSettings().livePreviews) {
|
||||||
closeCountdown = timeForPopupClose;
|
closeCountdown = timeForPopupClose;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue