Enable GIF loading

This commit is contained in:
Michael 2017-04-22 12:44:26 -04:00
parent e05fc88500
commit e63e1d65f7
2 changed files with 1 additions and 2 deletions

View file

@ -83,7 +83,7 @@ namespace ShiftOS.WinForms.Applications
public void btnidlebrowse_Click(object s, EventArgs a)
{
AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action<string>((file) =>
AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".gif", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action<string>((file) =>
{
ImageAsBinary = Utils.ReadAllBytes(file);
System.IO.File.WriteAllBytes("temp_bin.bmp", ImageAsBinary);

View file

@ -456,7 +456,6 @@ namespace ShiftOS.WinForms
UserControl w = (UserControl)Activator.CreateInstance(widget.Value, null);
w.Location = WidgetManager.LoadLocation(w.GetType());
w.Top -= desktoppanel.Height;
pnlwidgetlayer.Controls.Add(w);
MakeWidgetMovable(w);
Widgets.Add(w as IDesktopWidget);