mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
parent
013bdba902
commit
ec22b01086
@ -236,10 +236,23 @@ void MainWindow::initUI()
|
|||||||
connect(ui->actionDocumentation, &QAction::triggered, this, &MainWindow::documentationClicked);
|
connect(ui->actionDocumentation, &QAction::triggered, this, &MainWindow::documentationClicked);
|
||||||
|
|
||||||
/* Setup plugins interfaces */
|
/* Setup plugins interfaces */
|
||||||
for (auto &plugin : Plugins()->getPlugins()) {
|
const auto &plugins = Plugins()->getPlugins();
|
||||||
|
for (auto &plugin : plugins) {
|
||||||
plugin->setupInterface(this);
|
plugin->setupInterface(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if plugins are loaded and display tooltips accordingly
|
||||||
|
ui->menuWindows->setToolTipsVisible(true);
|
||||||
|
if (plugins.empty()) {
|
||||||
|
ui->menuPlugins->menuAction()->setToolTip(
|
||||||
|
tr("No plugins are installed. Check the plugins section on Cutter documentation to learn more."));
|
||||||
|
ui->menuPlugins->setEnabled(false);
|
||||||
|
} else if (ui->menuPlugins->isEmpty()) {
|
||||||
|
ui->menuPlugins->menuAction()->setToolTip(
|
||||||
|
tr("The installed plugins didn't add entries to this menu."));
|
||||||
|
ui->menuPlugins->setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
|
||||||
ui->actionGrouped_dock_dragging->setVisible(false);
|
ui->actionGrouped_dock_dragging->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user