mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Prevent DIS from producing invalid statements
This commit is contained in:
@@ -272,7 +272,7 @@ ActionContainer.Visible = #SaveAsPlaylistButton.Visible # || #ShowMPContentCheck
|
||||
]]></Script>
|
||||
<Script><![CDATA[
|
||||
[DeclareTrigger(CurrentlyPlayingTrackMixAvailability.Available)]
|
||||
object track = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
zuneUI:PlaybackTrack track = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
if ((Page.ShowMixOnEntry && track != null) && (Page.InitialPlaybackID == track.PlaybackID) && #CurrentlyPlayingTrackMixAvailability.Available #)
|
||||
{
|
||||
CurrentlyPlayingTrackMixAvailability.UpdateMixSeed.Invoke();
|
||||
@@ -670,14 +670,12 @@ if (playingVideo)
|
||||
{
|
||||
object naturalWidth = stream.ContentHeight * stream.ContentAspectWidth / stream.ContentAspectHeight;
|
||||
object naturalHeight = stream.ContentHeight;
|
||||
object wndWidth = #Window.ClientSize #.Width;
|
||||
object wndHeight = Window.ClientSize.Height;
|
||||
int wndWidth = #Window.ClientSize #.Width;
|
||||
int wndHeight = Window.ClientSize.Height;
|
||||
if (wndWidth != 0 && wndHeight != 0)
|
||||
{
|
||||
object scaleX = (float)(wndWidth) / (float)(naturalWidth);
|
||||
((float)(wndWidth)) / ((float)(naturalWidth));
|
||||
object scaleY = (float)(wndHeight) / (float)(naturalHeight);
|
||||
((float)(wndHeight)) / ((float)(naturalHeight));
|
||||
int scale = system:Math.Min(scaleX, scaleY);
|
||||
maxVideoSizeX = #TransportControls.ZoomScaleFactor # * naturalWidth;
|
||||
maxVideoSizeY = TransportControls.ZoomScaleFactor * naturalHeight;
|
||||
@@ -1320,7 +1318,7 @@ if (ListModel.SelectionManager != null && ListModel.SelectionManager.IsSelected(
|
||||
<Scripts>
|
||||
<Script><![CDATA[
|
||||
[DeclareTrigger(zuneUI:TransportControls.Instance.CurrentTrack)]
|
||||
object track = #zuneUI:TransportControls.Instance.CurrentTrack #;
|
||||
zuneUI:PlaybackTrack track = #zuneUI:TransportControls.Instance.CurrentTrack #;
|
||||
if (LibraryAlbumInfo != null)
|
||||
{
|
||||
Class.DisposeOwnedObject(LibraryAlbumInfo);
|
||||
@@ -1513,7 +1511,7 @@ if (RotateInfo.Enabled)
|
||||
[DeclareTrigger(NowPlayingBackgroundHelper.Visible)]
|
||||
MPTrackQuery.Enabled = false;
|
||||
MPTrackQuery.Id = null;
|
||||
object currentTrack = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
zuneUI:PlaybackTrack currentTrack = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
if (#NowPlayingBackgroundHelper.Visible # && NowPlayingBackgroundHelper.Visible || !currentTrack.IsInVisibleCollection && util:FeatureEnablement.IsFeatureEnabled(zuneDBApi:Features.eMusic))
|
||||
{
|
||||
MPTrackQuery.Id = TrackId.ToString();
|
||||
@@ -1530,7 +1528,7 @@ ArtistQuery.Enabled = false;
|
||||
ArtistQuery.Id = null;
|
||||
TopListenersQuery.Enabled = false;
|
||||
TopListenersQuery.ArtistId = null;
|
||||
object currentTrack = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
zuneUI:PlaybackTrack currentTrack = zuneUI:TransportControls.Instance.CurrentTrack;
|
||||
if (((!zuneUI:GuidHelper.IsEmpty(ArtistId) && #NowPlayingBackgroundHelper.Visible # && util:FeatureEnablement.IsFeatureEnabled(zuneDBApi:Features.eMusic) && configuration:ClientConfiguration.Playback.ShowNowPlayingClipAnimations) && (iris:Application.RenderingQuality == iris:RenderingQuality.MaxQuality)) && (currentTrack != null) && currentTrack.IsMusic)
|
||||
{
|
||||
ArtistPhotosQuery.Id = ArtistId.ToString();
|
||||
|
||||
Reference in New Issue
Block a user