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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallDesktop
Commits
87a93243
Commit
87a93243
authored
3 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Reload content player on screen settings change
parent
3c1852b4
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
PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/settings/ContentPlayerSettingsViewController.scala
+5
-2
5 additions, 2 deletions
...ontent/settings/ContentPlayerSettingsViewController.scala
with
5 additions
and
2 deletions
PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/settings/ContentPlayerSettingsViewController.scala
+
5
−
2
View file @
87a93243
...
@@ -22,6 +22,7 @@ import java.net.URI
...
@@ -22,6 +22,7 @@ import java.net.URI
class
ContentPlayerSettingsViewController
extends
ProfileSettingsTabViewController
with
IProfileReloadTask
{
class
ContentPlayerSettingsViewController
extends
ProfileSettingsTabViewController
with
IProfileReloadTask
{
private
var
startZoneHash
:
Int
=
_
private
var
startZoneHash
:
Int
=
_
private
var
startScreenHash
:
Int
=
_
@FXML
var
ffmpegButton
:
Button
=
_
@FXML
var
ffmpegButton
:
Button
=
_
@FXML
var
ffmpegTextField
:
TextField
=
_
@FXML
var
ffmpegTextField
:
TextField
=
_
...
@@ -155,7 +156,8 @@ class ContentPlayerSettingsViewController extends ProfileSettingsTabViewControll
...
@@ -155,7 +156,8 @@ class ContentPlayerSettingsViewController extends ProfileSettingsTabViewControll
override
def
loadSettings
(
settings
:
Profile
)
:
Unit
=
{
override
def
loadSettings
(
settings
:
Profile
)
:
Unit
=
{
val
configuration
=
ContentPlayerSettingsViewController
.
getZoneConfiguration
val
configuration
=
ContentPlayerSettingsViewController
.
getZoneConfiguration
startZoneHash
=
configuration
.
zones
.
hashCode
()
startZoneHash
=
configuration
.
zones
.
hashCode
startScreenHash
=
configuration
.
screen
.
hashCode
listView
.
getItems
.
setAll
(
configuration
.
zones
)
listView
.
getItems
.
setAll
(
configuration
.
zones
)
...
@@ -185,7 +187,8 @@ class ContentPlayerSettingsViewController extends ProfileSettingsTabViewControll
...
@@ -185,7 +187,8 @@ class ContentPlayerSettingsViewController extends ProfileSettingsTabViewControll
configuration
.
ffprobeExecutable
=
ffprobeTextField
.
getText
configuration
.
ffprobeExecutable
=
ffprobeTextField
.
getText
}
}
override
def
needReload
()
:
Boolean
=
startZoneHash
!=
ContentPlayerSettingsViewController
.
getZoneConfiguration
.
zones
.
hashCode
()
||
override
def
needReload
()
:
Boolean
=
startZoneHash
!=
ContentPlayerSettingsViewController
.
getZoneConfiguration
.
zones
.
hashCode
||
startScreenHash
!=
ContentPlayerSettingsViewController
.
getZoneConfiguration
.
screen
.
hashCode
||
!
listView
.
getSelectionModel
.
isEmpty
!
listView
.
getSelectionModel
.
isEmpty
override
def
validSettings
()
:
Boolean
=
{
override
def
validSettings
()
:
Boolean
=
{
...
...
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