aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowSlotUI.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-16 22:38:40 +0000
committersaturneric <[email protected]>2025-04-16 22:38:40 +0000
commit72d98ff183bcedd05c5a996fccaa0544cb4ac309 (patch)
treeeb7ce626d3bf4243c9efe3f23bba6ec830f59a5b /src/ui/main_window/MainWindowSlotUI.cpp
parentfix: solve CI build dependencies (diff)
downloadGpgFrontend-72d98ff183bcedd05c5a996fccaa0544cb4ac309.tar.gz
GpgFrontend-72d98ff183bcedd05c5a996fccaa0544cb4ac309.zip
feat: switch text-based model to workspace-based model
Diffstat (limited to 'src/ui/main_window/MainWindowSlotUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowSlotUI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowSlotUI.cpp b/src/ui/main_window/MainWindowSlotUI.cpp
index 49958c9f..e0a72ed1 100644
--- a/src/ui/main_window/MainWindowSlotUI.cpp
+++ b/src/ui/main_window/MainWindowSlotUI.cpp
@@ -60,6 +60,10 @@ void MainWindow::slot_open_key_management() {
void MainWindow::slot_open_file_tab() { edit_->SlotNewFileBrowserTab(); }
+void MainWindow::slot_open_file_tab_with_directory() {
+ edit_->SlotNewFileBrowserTabWithDirectory();
+}
+
void MainWindow::slot_switch_menu_control_mode(int index) {
auto disable = false;
if (index == -1) disable = true;
@@ -96,6 +100,9 @@ void MainWindow::slot_switch_menu_control_mode(int index) {
if (edit_->CurFilePage() != nullptr) {
auto* file_page = edit_->CurFilePage();
emit file_page->SignalCurrentTabChanged();
+ } else {
+ operations_menu_mask_ = ~0;
+ slot_update_operations_menu_by_checked_keys(operations_menu_mask_);
}
}