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

Method renameCurrentSession

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

Source from the content-addressed store, hash-verified

139}
140
141void SessionListView::renameCurrentSession()
142{
143 SessionNameInputDialog dlg;
144 dlg.setTitle(tr("Rename Session"));
145 dlg.setActionText(tr("Rename", "button"),
146 tr("Rename and Open", "button"));
147 const auto session = currentSession();
148 dlg.setSessionName(session);
149
150 runInputDialog(&dlg, [session](const QString &newName) {
151 SessionManager::instance()->renameSession(session, newName);
152 });
153}
154
155void SessionListView::switchToCurrentSession()
156{

Callers

nothing calls this directly

Calls 4

setActionTextMethod · 0.80
setTitleMethod · 0.45
setSessionNameMethod · 0.45
renameSessionMethod · 0.45

Tested by

no test coverage detected