Skip to content

Commit 0b81786

Browse files
committed
Properly embedded SKUI
1 parent 3ea5f91 commit 0b81786

File tree

1 file changed

+6
-3
lines changed
  • src/opensourceBIM/BIMserver

1 file changed

+6
-3
lines changed

src/opensourceBIM/BIMserver/ui.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525

2626
module OpenSourceBIM
2727
module BIMserver
28+
29+
# load SKUI webdialog helper library
30+
skui_path = File.join( AUTHOR_PATH, 'lib', 'SKUI' )
31+
load File.join( skui_path, 'embed_skui.rb' )
32+
::SKUI.embed_in( self )
33+
2834
class BIMserverWindow
2935

3036
require File.join(PLUGIN_PATH, 'bimserver_api')
@@ -42,9 +48,6 @@ def initialize()
4248
password = server_config.get("password")
4349
project = server_config.get("project")
4450

45-
# load SKUI webdialog helper library
46-
require File.join(AUTHOR_PATH, 'lib', 'SKUI', 'core.rb')
47-
4851
options = {
4952
:title => 'BIMserver connector',
5053
:preferences_key => 'BIMserver',

0 commit comments

Comments
 (0)