Przeglądaj źródła

Better update time for GUI emulation

Zachary Kotlarek 12 lat temu
rodzic
commit
b3e38f0132
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      dmx/state.pl

+ 4 - 4
dmx/state.pl

@@ -421,15 +421,15 @@ while (1) {
 
 
 	# Simulate the old GUI indicator
 	# Simulate the old GUI indicator
 	{
 	{
-	my $gui = 0;
+		my $gui = 0;
 		if (exists($files{'PLAYING_WINDOW'}) && $files{'PLAYING_WINDOW'}->{'value'} ne 'Fullscreen video') {
 		if (exists($files{'PLAYING_WINDOW'}) && $files{'PLAYING_WINDOW'}->{'value'} ne 'Fullscreen video') {
 			$gui = 1;
 			$gui = 1;
 		}
 		}
-		if ($files{'GUI'}->{'value'} != $gui) {
-			$files{'GUI'}->{'mtime'} = time();
-		}
 		$files{'GUI'}->{'value'} = $gui;
 		$files{'GUI'}->{'value'} = $gui;
 	}
 	}
+	if (exists($files{'PLAYING'})) {
+		$files{'GUI'}->{'update'} = $files{'PLAYING'}->{'update'};
+	}
 
 
 	# Ignore the MOTION file if NO_MOTION is set
 	# Ignore the MOTION file if NO_MOTION is set
 	if (exists($files{'NO_MOTION'}) && $files{'NO_MOTION'}->{'value'}) {
 	if (exists($files{'NO_MOTION'}) && $files{'NO_MOTION'}->{'value'}) {