mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-02-02 06:17:34 +00:00
Enable GIF loading
This commit is contained in:
parent
e05fc88500
commit
e63e1d65f7
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue