a issue with the taskbar-progress feature was fixed
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
###
|
||||||
|
|
||||||
|
- a issue with the taskbar-progress feature was fixed
|
||||||
|
|
||||||
|
### 5.4.1
|
||||||
|
|
||||||
|
- fix ArgumentOutOfRangeException
|
||||||
|
|
||||||
### 5.4
|
### 5.4
|
||||||
|
|
||||||
- added taskbar-progress implementation
|
- added taskbar-progress implementation
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("5.4.0.0")]
|
[assembly: AssemblyVersion("5.4.1.0")]
|
||||||
[assembly: AssemblyFileVersion("5.4.0.0")]
|
[assembly: AssemblyFileVersion("5.4.1.0")]
|
||||||
|
|||||||
@@ -387,9 +387,10 @@ namespace mpvnet
|
|||||||
else
|
else
|
||||||
Text = "mpv.net " + Application.ProductVersion;
|
Text = "mpv.net " + Application.ProductVersion;
|
||||||
|
|
||||||
ProgressTimer.Interval = (int)(mp.Duration.TotalMilliseconds / 99);
|
int interval = (int)(mp.Duration.TotalMilliseconds / 100);
|
||||||
if (ProgressTimer.Interval < 100) ProgressTimer.Interval = 100;
|
if (interval < 100) interval = 100;
|
||||||
if (ProgressTimer.Interval > 999) ProgressTimer.Interval = 999;
|
if (interval > 1000) interval = 1000;
|
||||||
|
ProgressTimer.Interval = interval;
|
||||||
UpdateProgressBar();
|
UpdateProgressBar();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -486,7 +487,7 @@ namespace mpvnet
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m.Msg == TaskbarButtonCreatedMessage)
|
if (m.Msg == TaskbarButtonCreatedMessage && mp.TaskbarProgress)
|
||||||
{
|
{
|
||||||
Taskbar = new Taskbar(Handle);
|
Taskbar = new Taskbar(Handle);
|
||||||
ProgressTimer.Start();
|
ProgressTimer.Start();
|
||||||
@@ -543,7 +544,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
void PropChangePause(bool enabled)
|
void PropChangePause(bool enabled)
|
||||||
{
|
{
|
||||||
if (Taskbar != null)
|
if (Taskbar != null && mp.TaskbarProgress)
|
||||||
{
|
{
|
||||||
if (enabled)
|
if (enabled)
|
||||||
Taskbar.SetState(TaskbarStates.Paused);
|
Taskbar.SetState(TaskbarStates.Paused);
|
||||||
|
|||||||
Reference in New Issue
Block a user