MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / cloneCurrentSession

Method cloneCurrentSession

src/plugins/core/session/sessionlistview.cpp:127–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void SessionListView::cloneCurrentSession()
128{
129 SessionNameInputDialog dlg;
130 dlg.setTitle(tr("New Session Name"));
131 dlg.setActionText(tr("Clone", "button"),
132 tr("Clone and Open", "button"));
133 const auto session = currentSession();
134 dlg.setSessionName(session + " (2)");
135
136 runInputDialog(&dlg, [session](const QString &newName) {
137 SessionManager::instance()->cloneSession(session, newName);
138 });
139}
140
141void SessionListView::renameCurrentSession()
142{

Callers

nothing calls this directly

Calls 4

setActionTextMethod · 0.80
setTitleMethod · 0.45
setSessionNameMethod · 0.45
cloneSessionMethod · 0.45

Tested by

no test coverage detected