File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
External/Plugins/ProjectManager/Controls Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,14 @@ public NewProjectDialog()
282
282
283
283
projectListView . Items . Clear ( ) ;
284
284
projectListView . TileSize = PluginCore . Helpers . ScaleHelper . Scale ( new Size ( 170 , 22 ) ) ;
285
+ projectListView . ShowGroups = PluginBase . Settings . UseListViewGrouping ;
286
+
287
+ if ( Win32 . isRunningOnWine ( ) )
288
+ {
289
+ projectListView . View = View . SmallIcon ;
290
+ projectListView . GridLines = ! projectListView . ShowGroups ;
291
+ columnHeader1 . Width = - 2 ;
292
+ }
285
293
286
294
if ( ! Directory . Exists ( ProjectPaths . ProjectTemplatesDirectory ) )
287
295
{
Original file line number Diff line number Diff line change 3
3
using System . Drawing ;
4
4
using System . Windows . Forms ;
5
5
using System . Runtime . InteropServices ;
6
+ using Microsoft . Win32 ;
6
7
7
8
namespace PluginCore
8
9
{
@@ -27,6 +28,14 @@ public static Boolean IsRunningOnWindows()
27
28
return shouldUseWin32 ;
28
29
}
29
30
31
+ /// <summary>
32
+ /// Checks if we are running on Wine
33
+ /// </summary>
34
+ public static Boolean isRunningOnWine ( )
35
+ {
36
+ return Registry . LocalMachine . OpenSubKey ( @"Software\Wine\" ) != null ;
37
+ }
38
+
30
39
/// <summary>
31
40
/// Checks if we are running on Mono
32
41
/// </summary>
You can’t perform that action at this time.
0 commit comments