修复 Bug

This commit is contained in:
寂静的羽夏 2022-06-14 19:21:12 +08:00
parent 655866ebb3
commit 2668a9df85
3 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -106,6 +106,8 @@ private:
DMenu *hexeditorMenu;
DMenu *findresultMenu;
QAction *settingplg;
private:
QHexView *hexeditor;
QFile file;

View File

@ -35,3 +35,4 @@ v1.2:
13. 增加最大搜索数量限制,防止因数量过多导致程序崩溃
14. 增加搜索方向和选区,充分发挥搜索功能
15. 增加以十六进制的形式拷贝、剪切、复制
16. 修复插件禁用时,因未禁用打开插件对话框会导致程序崩溃问题。