mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-28 11:34:52 +01:00
Desktop-Enhancements (#1434)
* feat: Add minimum size for macos app * fix: Adjust font sizing and spaces in wallet list page and wallet selection dropdown
This commit is contained in:
@@ -24,7 +24,21 @@ class AppDelegate: FlutterAppDelegate {
|
||||
}
|
||||
|
||||
result(secRandom(count: count))
|
||||
|
||||
case "setMinWindowSize":
|
||||
guard let self = self else {
|
||||
result(false)
|
||||
return
|
||||
}
|
||||
if let arguments = call.arguments as? [String: Any],
|
||||
let width = arguments["width"] as? Double,
|
||||
let height = arguments["height"] as? Double {
|
||||
DispatchQueue.main.async {
|
||||
self.mainFlutterWindow?.minSize = CGSize(width: width, height: height)
|
||||
}
|
||||
result(true)
|
||||
} else {
|
||||
result(false)
|
||||
}
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user