File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Files.App/ViewModels/Settings Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
// Licensed under the MIT License.
3
3
4
4
using Microsoft . Win32 ;
5
- using System . Runtime . InteropServices ;
6
5
using System . Windows . Input ;
7
6
using Windows . ApplicationModel ;
8
7
using Windows . ApplicationModel . DataTransfer ;
@@ -170,7 +169,7 @@ public void CopyWindowsVersion()
170
169
Clipboard . SetContent ( dataPackage ) ;
171
170
} ) ;
172
171
}
173
-
172
+
174
173
public void CopyUserID ( )
175
174
{
176
175
SafetyExtensions . IgnoreExceptions ( ( ) =>
@@ -194,9 +193,10 @@ public string GetAppVersion()
194
193
195
194
public string GetWindowsVersion ( )
196
195
{
197
- return Environment . OSVersion . Version . ToString ( ) ;
196
+ ulong v = ulong . Parse ( Windows . System . Profile . AnalyticsInfo . VersionInfo . DeviceFamilyVersion ) ;
197
+ return $ "{ ( v >> 48 ) & 0xFFFF } .{ ( v >> 32 ) & 0xFFFF } .{ ( v >> 16 ) & 0xFFFF } .{ v & 0xFFFF } ";
198
198
}
199
-
199
+
200
200
public string GetUserID ( )
201
201
{
202
202
return GeneralSettingsService . UserId ;
You can’t perform that action at this time.
0 commit comments