mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
Move OS detection to common and PowerToysInterop (#5120)
* Remove os-detection project * Removed os-detection project from sln * Added os-detection to PowerToysInterop * Removed references to os-detection and added PowerToysInterop.dll to the ImageResizer folder
This commit is contained in:
@@ -7,7 +7,9 @@ namespace ImageResizer.Models
|
||||
{
|
||||
public class AdvancedSettings
|
||||
{
|
||||
[DllImport("../../os-detection.dll", EntryPoint = "UseNewSettings", ExactSpelling = false)]
|
||||
public static extern bool UseNewSettings();
|
||||
public static bool UseNewSettings()
|
||||
{
|
||||
return interop.CommonManaged.ShouldNewSettingsBeUsed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user