Clearer error on importing both gpui and gpui2

This commit is contained in:
Conrad Irwin 2023-10-26 10:39:52 +02:00
parent 9c10152c89
commit 51aa0d6a94
3 changed files with 18 additions and 0 deletions

View file

@ -82,6 +82,7 @@ const NSWindowAnimationBehaviorUtilityWindow: NSInteger = 4;
#[ctor]
unsafe fn build_classes() {
::util::gpui1_loaded();
WINDOW_CLASS = build_window_class("GPUIWindow", class!(NSWindow));
PANEL_CLASS = build_window_class("GPUIPanel", class!(NSPanel));
VIEW_CLASS = {