Skip to content

Commit

Permalink
Issue #434 and #438
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Will committed Apr 17, 2017
1 parent d32e789 commit a94831c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion StinoCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,14 @@ class StinoOpenExampleCommand(sublime_plugin.WindowCommand):

def run(self, example_path):
"""."""
stino.open_project(example_path, self.window)
if stino.arduino_info['init_done']:
in_new = \
bool(stino.arduino_info['settings'].get('open_in_new_window'))
win = self.window
if in_new:
sublime.run_command('new_window')
win = sublime.windows()[-1]
stino.open_project(example_path, win)


class StinoRefreshLibrariesCommand(sublime_plugin.WindowCommand):
Expand Down
2 changes: 1 addition & 1 deletion libs/stino_runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ def get_h_path_info(project):
ext_app_path = arduino_info['ext_app_path']
platform_path = selected.get_sel_platform_path(arduino_info)

platform_paths = [sketchbook_path, platform_path, ext_app_path]
platform_paths = [platform_path, sketchbook_path, ext_app_path]
for path in platform_paths:
libraries_path = os.path.join(path, 'libraries')
paths = glob.glob(libraries_path + '/*')
Expand Down

0 comments on commit a94831c

Please sign in to comment.