Skip to content

Commit

Permalink
A suggested fix of #134 by Wojtek F.
Browse files Browse the repository at this point in the history
Some settings window visual changes
  • Loading branch information
sirWest committed Oct 24, 2017
1 parent 5c68ef3 commit 5e8025d
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 75 deletions.
2 changes: 1 addition & 1 deletion Classes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private static void Main(string[] args)
return;
}

if (mutex.WaitOne(0, false))
if (mutex.WaitOne(10, false))
{
if (Environment.OSVersion.Version.Major >= 6)
SetProcessDPIAware();
Expand Down
77 changes: 38 additions & 39 deletions Controls/Devices.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Controls/Devices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void Devices_Load(object sender, EventArgs e)
var tile = new Size(listDevices.ClientSize.Width - 18, (int)(listDevices.TileSize.Height * FormSwitcher.DpiFactor));
if(tile.Width < 1 || tile.Height < 1)
{
tile = new Size(15, 15);
tile = new Size(listDevices.ClientSize.Width - 18, listDevices.TileSize.Height);
}
listDevices.TileSize = tile;
var size = new Size((int)(32 * FormSwitcher.DpiFactor), (int)(32 * FormSwitcher.DpiFactor));
Expand Down
Loading

0 comments on commit 5e8025d

Please sign in to comment.