This commit is contained in:
oguzhankoral
2024-02-22 16:19:13 +03:00
parent 05e7472051
commit f85bde5dee
2 changed files with 2 additions and 3 deletions
@@ -2,7 +2,6 @@
require_relative 'command'
require_relative '../states/initial_state'
require_relative '../ui/vue_view'
require_relative '../actions/initialize_speckle'
require_relative '../observers/factory'
@@ -15,7 +14,7 @@ module SpeckleConnector
def _run
app = self.app
vue_view = app.ui_controller.user_interfaces[Ui::SPECKLE_UI_ID]
vue_view = app.ui_controller.user_interfaces[Ui::SPECKLE_LEGACY_UI]
if vue_view
vue_view.dialog.reset_dialog_location
else
@@ -66,7 +66,7 @@ module SpeckleConnector
def self.reset_window_location_command(app)
cmd = MenuCommandHandler.sketchup_command(
ResetWindowLocation.new(app), 'Reset Window Location'
ResetWindowLocation.new(app, nil), 'Reset Window Location'
)
cmd.tooltip = 'Bring Speckle window onto center of SketchUp window'
cmd.status_bar_text = 'Bring Speckle window onto center of SketchUp window'