diff --git a/src/app/ui/editor/standby_state.cpp b/src/app/ui/editor/standby_state.cpp index a3261fe72..5ed9416b7 100644 --- a/src/app/ui/editor/standby_state.cpp +++ b/src/app/ui/editor/standby_state.cpp @@ -409,6 +409,17 @@ bool StandbyState::onDoubleClick(Editor* editor, MouseMessage* msg) UIContext::instance()->executeCommand(selectTileCmd, params); return true; } + // Show slice properties when we double-click it + else if (ink->isSlice()) { + EditorHit hit = editor->calcHit(msg->position()); + if (hit.slice()) { + Command* cmd = Commands::instance()->byId(CommandId::SliceProperties()); + Params params; + params.set("id", base::convert_to(hit.slice()->id()).c_str()); + UIContext::instance()->executeCommand(cmd, params); + return true; + } + } return false; }