Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallDesktop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallDesktop
Commits
03e1cbc3
Commit
03e1cbc3
authored
8 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Media View Bug
parent
b260ec38
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PluginMedia/src/de/tobias/playpad/mediaplugin/main/impl/MediaViewController.java
+29
-26
29 additions, 26 deletions
...as/playpad/mediaplugin/main/impl/MediaViewController.java
with
29 additions
and
26 deletions
PluginMedia/src/de/tobias/playpad/mediaplugin/main/impl/MediaViewController.java
+
29
−
26
View file @
03e1cbc3
...
...
@@ -17,6 +17,7 @@ import de.tobias.utils.application.container.PathType;
import
de.tobias.utils.util.OS
;
import
de.tobias.utils.util.OS.OSType
;
import
javafx.application.Platform
;
import
javafx.event.Event
;
import
javafx.geometry.Pos
;
import
javafx.geometry.Rectangle2D
;
import
javafx.scene.Scene
;
...
...
@@ -45,7 +46,7 @@ public class MediaViewController implements ProfileListener {
private
Pad
currentDisplayedPad
;
public
MediaViewController
(
VideoSettings
settings
)
{
MediaViewController
(
VideoSettings
settings
)
{
Profile
.
registerListener
(
this
);
this
.
settings
=
settings
;
...
...
@@ -80,11 +81,12 @@ public class MediaViewController implements ProfileListener {
if
(
OS
.
getType
()
==
OSType
.
Windows
)
stage
.
setAlwaysOnTop
(
true
);
getStage
().
setOnCloseRequest
(
event
->
e
vent
.
consume
()
);
getStage
().
setOnCloseRequest
(
E
vent
:
:
consume
);
reloadSettings
();
}
public
void
reloadSettings
()
{
void
reloadSettings
()
{
Platform
.
runLater
(()
->
{
if
(
stage
.
isFullScreen
())
stage
.
setFullScreen
(
false
);
...
...
@@ -111,9 +113,10 @@ public class MediaViewController implements ProfileListener {
if
(
settings
.
isFullScreen
()
&&
!
stage
.
isFullScreen
())
stage
.
setFullScreen
(
true
);
});
}
public
Stage
getStage
()
{
Stage
getStage
()
{
return
stage
;
}
...
...
@@ -145,7 +148,7 @@ public class MediaViewController implements ProfileListener {
@Override
public
void
reloadSettings
(
Profile
old
,
Profile
currentProfile
)
{
Platform
.
runLater
(
()
->
reloadSettings
()
);
Platform
.
runLater
(
this
::
reloadSettings
);
}
public
boolean
isFinish
()
{
...
...
@@ -176,7 +179,7 @@ public class MediaViewController implements ProfileListener {
return
currentDisplayedPad
;
}
public
void
blind
(
boolean
blind
)
{
void
blind
(
boolean
blind
)
{
if
(
blind
)
{
this
.
imageView
.
setStyle
(
""
);
mediaView
.
setMediaPlayer
(
null
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment