From 6068ba6aefa7fa14ba69bb3b5619309d31d69a60 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Tue, 12 Aug 2025 22:48:22 -0400 Subject: [PATCH] Add open printer tray to tools dropdown --- src/qt/qt_mainwindow.cpp | 7 +++++++ src/qt/qt_mainwindow.hpp | 2 ++ src/qt/qt_mainwindow.ui | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index ddf7cf1e0..34a0c9180 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -2270,6 +2270,13 @@ MainWindow::on_actionOpen_screenshots_folder_triggered() QDesktopServices::openUrl(QUrl(QString("file:///") + usr_path + QString("/screenshots/"))); } +void +MainWindow::on_actionOpen_printer_tray_triggered() +{ + static_cast(QDir(QString(usr_path) + QString("/printer/")).mkpath(".")); + QDesktopServices::openUrl(QUrl(QString("file:///") + usr_path + QString("/printer/"))); +} + void MainWindow::on_actionApply_fullscreen_stretch_mode_when_maximized_triggered(bool checked) { diff --git a/src/qt/qt_mainwindow.hpp b/src/qt/qt_mainwindow.hpp index e7611d576..99cfdadbc 100644 --- a/src/qt/qt_mainwindow.hpp +++ b/src/qt/qt_mainwindow.hpp @@ -163,6 +163,8 @@ private slots: void on_actionOpen_screenshots_folder_triggered(); + void on_actionOpen_printer_tray_triggered(); + void on_actionApply_fullscreen_stretch_mode_when_maximized_triggered(bool checked); private: diff --git a/src/qt/qt_mainwindow.ui b/src/qt/qt_mainwindow.ui index a0f06e75e..12d353ef3 100644 --- a/src/qt/qt_mainwindow.ui +++ b/src/qt/qt_mainwindow.ui @@ -111,6 +111,7 @@ + @@ -848,6 +849,11 @@ Open screenshots &folder... + + + Open &printer tray... + + true