MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ExitClientWithDialog

Method ExitClientWithDialog

src/client/ct_base_workspace.cpp:748–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746 }
747
748 void BaseWorkspace::ExitClientWithDialog() {
749 QString msg = tcTr("id_exit_client");
750 if (auto plugin = plugin_manager_->GetFileTransferPlugin(); plugin) {
751 if (plugin->HasProcessingTasks()) {
752 msg = tcTr("id_file_transfer_busy") + msg;
753 }
754 }
755 TcDialog dialog(tcTr("id_exit"), msg, this);
756 if (dialog.exec() == kDoneOk) {
757 if (media_record_plugin_) {
758 media_record_plugin_->EndRecord();
759 }
760 Exit();
761 }
762 }
763
764 void BaseWorkspace::dragEnterEvent(QDragEnterEvent *event) {
765 event->accept();

Callers 1

RegisterBaseListenersMethod · 0.95

Calls 2

HasProcessingTasksMethod · 0.80
GetFileTransferPluginMethod · 0.45

Tested by

no test coverage detected