1
00:00:01,890 --> 00:00:09,060
OK, so when we've got a bunch of songs here and we play one our status bar of dates, right when we

2
00:00:09,060 --> 00:00:16,560
hit Stop, it goes back this fifty nine to fifty nine and instead of one 40, it shouldn't say anything

3
00:00:16,560 --> 00:00:20,310
here because we've stopped, we're not playing any songs.

4
00:00:20,310 --> 00:00:22,110
So we should get rid of all of this.

5
00:00:22,410 --> 00:00:25,560
Or you could change anything you want but.

6
00:00:26,810 --> 00:00:33,970
It sort of doesn't make sense to have anything here, so let's go ahead and fix that here in this video.

7
00:00:33,980 --> 00:00:40,940
So let's head back over to our code and I'm just going to grab our status bar thing right here if we

8
00:00:40,940 --> 00:00:48,380
copy this and if we come to our stop function, because that's where we want this to happen.

9
00:00:48,380 --> 00:00:50,570
And we could just paste this in now.

10
00:00:50,750 --> 00:00:53,420
We can change this to whatever we want.

11
00:00:53,420 --> 00:00:55,850
If we want this to, then just be blank.

12
00:00:56,780 --> 00:00:57,500
We could just.

13
00:00:58,790 --> 00:01:04,580
Delete all of this stuff in here, so status bardock config, that text equals nothing.

14
00:01:04,610 --> 00:01:06,830
So now if we're going to save this and let's run this guy.

15
00:01:08,390 --> 00:01:14,330
See what we got here, so let's add some songs, you know, I kind of like doing that.

16
00:01:14,790 --> 00:01:15,620
I was playing.

17
00:01:18,460 --> 00:01:22,790
And if we stop it, it disappears and then you notice it pop back up.

18
00:01:22,870 --> 00:01:23,470
Why?

19
00:01:23,750 --> 00:01:25,030
Well, if you think.

20
00:01:26,000 --> 00:01:28,940
About our code, if we come up here to our play time function.

21
00:01:30,020 --> 00:01:35,450
What's happening here at the very bottom, we're saying every second play this thing again, so a second

22
00:01:35,450 --> 00:01:40,000
goes by, this function gets called again and this thing gets output again.

23
00:01:40,310 --> 00:01:43,290
So this is maybe a problem.

24
00:01:43,460 --> 00:01:47,770
So what we can do is do some do a little if statement.

25
00:01:47,780 --> 00:01:49,700
So right up here, let's see.

26
00:01:49,700 --> 00:01:54,680
Our current time is the thing in seconds that the current time is.

27
00:01:54,680 --> 00:02:04,460
So we could just come down here and we could say if current time greater than or equal to one, then

28
00:02:04,580 --> 00:02:08,090
do this or else don't do anything right.

29
00:02:08,120 --> 00:02:11,270
So let's go ahead and save this and run to see if that did the trick.

30
00:02:13,430 --> 00:02:18,050
So we can add some songs, we can play one.

31
00:02:21,520 --> 00:02:26,560
Thing pops up when we hit stop, it stops and it stays gone.

32
00:02:26,740 --> 00:02:29,920
So, OK, that fixes that and that's all for this video.
