diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ec807886..042c9606 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1079,3 +1079,8 @@ void MainWindow::refreshVisibleDockWidgets() } } } + +void MainWindow::on_actionRefresh_contents_triggered() +{ + this->refreshVisibleDockWidgets(); +} diff --git a/src/mainwindow.h b/src/mainwindow.h index 430374a1..c6eaa5a0 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -120,6 +120,8 @@ public slots: void on_backButton_clicked(); + void refreshVisibleDockWidgets(); + private slots: void on_actionMem_triggered(); @@ -168,7 +170,7 @@ private slots: void on_actionQuit_triggered(); - void refreshVisibleDockWidgets(); + void on_actionRefresh_contents_triggered(); private: QDockWidget *asmDock; diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 0814ef73..9f575a04 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -159,7 +159,7 @@ border-top: 0px; 0 0 725 - 23 + 22 @@ -173,8 +173,8 @@ border-top: 0px; 2601 136 - 170 - 214 + 126 + 177 @@ -204,6 +204,7 @@ border-top: 0px; false + @@ -910,6 +911,14 @@ background: rgb(64, 64, 64); Show/HIde Exports panel + + + Refresh contents + + + Refresh contents + + diff --git a/src/widgets/omnibar.cpp b/src/widgets/omnibar.cpp index 214e89f7..ad5e188a 100644 --- a/src/widgets/omnibar.cpp +++ b/src/widgets/omnibar.cpp @@ -12,11 +12,13 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) : main(main), commands({": Comments toggle", ": Dashboard toggle", + ": Exports toggle", ": Flags toggle", ": Functions toggle", ": Imports toggle", - ": Exports toggle", + ": Lock/Unlock interface", ": Notepad toggle", + ": Refresh contents", ": Relocs toggle", ": Run Script", ": Sections toggle", @@ -24,7 +26,6 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) : ": Symbols toggle", ": Tabs up/down", ": Theme switch", - ": Lock/Unlock interface", ": Web server start/stop"}) { // QLineEdit basic features @@ -135,6 +136,10 @@ void Omnibar::on_gotoEntry_returnPressed() { this->main->on_actionSymbols_triggered(); } + else if (str.contains("Refresh")) + { + this->main->refreshVisibleDockWidgets(); + } else if (str.contains("Relocs")) { this->main->on_actionReloc_triggered(); diff --git a/src/widgets/sidebar.cpp b/src/widgets/sidebar.cpp index dddca5d5..72d0e3fd 100644 --- a/src/widgets/sidebar.cpp +++ b/src/widgets/sidebar.cpp @@ -113,3 +113,8 @@ void SideBar::on_respButton_toggled(bool checked) { this->main->toggleResponsive(checked); } + +void SideBar::on_refreshButton_clicked() +{ + this->main->refreshVisibleDockWidgets(); +} diff --git a/src/widgets/sidebar.h b/src/widgets/sidebar.h index 87eb62b0..712fa22a 100644 --- a/src/widgets/sidebar.h +++ b/src/widgets/sidebar.h @@ -41,6 +41,8 @@ private slots: void on_respButton_toggled(bool checked); + void on_refreshButton_clicked(); + private: Ui::SideBar *ui; MainWindow *main;