Fix not compiling on Windows
This commit is contained in:
parent
c07b0718f7
commit
e9094b9247
@ -15,7 +15,11 @@ public class GTUIAboutWindow: GTUIWindow {
|
||||
public init(filePath: String? = nil) {
|
||||
super.init(fields: [:])
|
||||
if let filePath {
|
||||
#if os(Windows)
|
||||
pointer = adw_about_window_new()?.cast()
|
||||
#else
|
||||
pointer = adw_about_window_new_from_appdata(filePath, nil)?.cast()
|
||||
#endif
|
||||
} else {
|
||||
pointer = adw_about_window_new()?.cast()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user