mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +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,6 +7,7 @@
|
||||
#include "..\two_way_pipe_message_ipc.h"
|
||||
#include "..\common.h"
|
||||
#include "..\shared_constants.h"
|
||||
#include "..\os-detect.h"
|
||||
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
@@ -113,7 +114,12 @@ public
|
||||
static String^ GetProductVersion()
|
||||
{
|
||||
return gcnew String(get_product_version().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
static bool ShouldNewSettingsBeUsed()
|
||||
{
|
||||
return UseNewSettings();
|
||||
}
|
||||
};
|
||||
|
||||
public
|
||||
|
||||
Reference in New Issue
Block a user