mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
commit
929076eb6f
@ -8,7 +8,7 @@ namespace Nikse.SubtitleEdit.Core
|
||||
/// </summary>
|
||||
public static class TaskbarList
|
||||
{
|
||||
private static readonly Lazy<bool> SupportedLazy = new Lazy<bool>(() => Environment.OSVersion.Version >= new Version(6, 1));
|
||||
private static readonly Lazy<bool> SupportedLazy = new Lazy<bool>(() => Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version >= new Version(6, 1));
|
||||
private static readonly Lazy<ITaskbarList3> TaskbarListLazy = new Lazy<ITaskbarList3>(() => (ITaskbarList3)new CLSID_TaskbarList());
|
||||
|
||||
public static bool Supported { get { return SupportedLazy.Value; } }
|
||||
|
@ -319,7 +319,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
labelProgress.Text = string.Empty;
|
||||
labelInfo.Text = string.Empty;
|
||||
progressBar1.Visible = false;
|
||||
TaskbarList.SetProgressState(Handle, TaskbarButtonProgressFlags.NoProgress);
|
||||
TaskbarList.SetProgressState(Owner.Handle, TaskbarButtonProgressFlags.NoProgress);
|
||||
buttonRipWave.Enabled = true;
|
||||
buttonInputBrowse.Enabled = true;
|
||||
buttonSearchFolder.Enabled = true;
|
||||
@ -342,7 +342,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (progressBar1.Value < progressBar1.Maximum)
|
||||
progressBar1.Value++;
|
||||
TaskbarList.SetProgressValue(Handle, progressBar1.Value, progressBar1.Maximum);
|
||||
TaskbarList.SetProgressValue(Owner.Handle, progressBar1.Value, progressBar1.Maximum);
|
||||
labelProgress.Text = progressBar1.Value + " / " + progressBar1.Maximum;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user