mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-11-22 14:54:48 +01:00
fix: wrongly calling command to create workspace instead of buffer.
This commit is contained in:
parent
612308d4f4
commit
c8db688852
1 changed files with 3 additions and 6 deletions
|
@ -57,10 +57,7 @@ class QPServerBrowser():
|
||||||
def _():
|
def _():
|
||||||
self.window.run_command(
|
self.window.run_command(
|
||||||
"codemp_join_workspace",
|
"codemp_join_workspace",
|
||||||
{
|
{"workspace_id": self.current_wid_selection})
|
||||||
"workspace_id": self.current_wid_selection,
|
|
||||||
"sync": True
|
|
||||||
})
|
|
||||||
|
|
||||||
ws = workspaces.lookupId(wid)
|
ws = workspaces.lookupId(wid)
|
||||||
buffers = ws.handle.fetch_buffers()
|
buffers = ws.handle.fetch_buffers()
|
||||||
|
@ -199,12 +196,12 @@ class QPWorkspaceBrowser():
|
||||||
elif index == 3:
|
elif index == 3:
|
||||||
def create_buffer(name):
|
def create_buffer(name):
|
||||||
self.window.run_command(
|
self.window.run_command(
|
||||||
"codemp_create_workspace",
|
"codemp_create_buffer",
|
||||||
{
|
{
|
||||||
"workspace_id": self.workspace_id,
|
"workspace_id": self.workspace_id,
|
||||||
"buffer_id": name
|
"buffer_id": name
|
||||||
})
|
})
|
||||||
self.window.show_input_panel("New Workspace Name", "", create_buffer, None, self.edit_workspace)
|
self.window.show_input_panel("New Buffer Name", "", create_buffer, None, self.edit_workspace)
|
||||||
elif index == 4:
|
elif index == 4:
|
||||||
def delete_buffer(index):
|
def delete_buffer(index):
|
||||||
if index == -1 or index == 0:
|
if index == -1 or index == 0:
|
||||||
|
|
Loading…
Reference in a new issue