修复 Bug
This commit is contained in:
parent
655866ebb3
commit
2668a9df85
|
@ -291,6 +291,7 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
|||
MainWindow::on_setting_general, keyGeneral);
|
||||
AddToolSubMenuShortcutAction("settingplugin", tr("Plugin"),
|
||||
MainWindow::on_setting_plugin, keyplugin);
|
||||
settingplg = a;
|
||||
AddToolSubMenuAction("layout", tr("RestoreLayout"),
|
||||
MainWindow::on_restoreLayout);
|
||||
menu->addMenu(tm);
|
||||
|
@ -813,6 +814,7 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
|||
} else {
|
||||
plgmenu->setEnabled(false);
|
||||
logger->logMessage(ERRLOG(tr("UnLoadPluginSetting")));
|
||||
settingplg->setEnabled(false);
|
||||
}
|
||||
|
||||
m_settings->saveWindowState(this, true);
|
||||
|
@ -2078,6 +2080,8 @@ void MainWindow::on_metadatacls() {
|
|||
}
|
||||
|
||||
void MainWindow::on_setting_plugin() {
|
||||
if (!_enableplugin)
|
||||
return;
|
||||
PluginWindow pw(this);
|
||||
pw.setPluginSystem(plgsys);
|
||||
pw.exec();
|
||||
|
|
|
@ -106,6 +106,8 @@ private:
|
|||
DMenu *hexeditorMenu;
|
||||
DMenu *findresultMenu;
|
||||
|
||||
QAction *settingplg;
|
||||
|
||||
private:
|
||||
QHexView *hexeditor;
|
||||
QFile file;
|
||||
|
|
Loading…
Reference in New Issue