mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-23 10:45:27 +01:00
Windows fix (#1624)
* CW-488 Fix missing Wownero logo * Temporary fix for windows
This commit is contained in:
@@ -1549,8 +1549,14 @@ abstract class SettingsStoreBase with Store {
|
||||
final macInfo = await deviceInfoPlugin.macOsInfo;
|
||||
deviceName = macInfo.computerName;
|
||||
} else if (Platform.isWindows) {
|
||||
final windowsInfo = await deviceInfoPlugin.windowsInfo;
|
||||
deviceName = windowsInfo.productName;
|
||||
try {
|
||||
final windowsInfo = await deviceInfoPlugin.windowsInfo;
|
||||
deviceName = windowsInfo.productName;
|
||||
} catch (e) {
|
||||
print(e);
|
||||
print('likely digitalProductId is null wait till https://github.com/fluttercommunity/plus_plugins/pull/3188 is merged');
|
||||
deviceName = "Windows Device";
|
||||
}
|
||||
}
|
||||
|
||||
return deviceName;
|
||||
|
||||
Reference in New Issue
Block a user