Skip to content

Commit

Permalink
Toggling visiblity works with DConf hotkeys too
Browse files Browse the repository at this point in the history
  • Loading branch information
medo64 committed May 28, 2023
1 parent 2aecaf1 commit e709e88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main(int argc, char* argv[]) {
cli.setApplicationDescription(APP_DESCRIPTION);
cli.addHelpOption();
cli.addVersionOption();
QCommandLineOption hideOption(QStringList() << "s" << "hide", "Application is immediatelly sent to tray.");
QCommandLineOption hideOption(QStringList() << "s" << "hide", "Application is immediately sent to tray.");
cli.addOption(hideOption);
cli.process(app);

Expand Down
2 changes: 1 addition & 1 deletion src/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ MainWindow::MainWindow(Storage* storage) : QMainWindow(nullptr), ui(new Ui::Main
connect(_hotkey, &Hotkey::activated, this, &MainWindow::onHotkeyPress);

//single instance
connect(SingleInstance::instance(), &SingleInstance::newInstanceDetected, this, &MainWindow::onTrayShow);
connect(SingleInstance::instance(), &SingleInstance::newInstanceDetected, this, &MainWindow::onHotkeyPress);

//toolbar setup
connect(ui->actionNew, &QAction::triggered, this, &MainWindow::onFileNew);
Expand Down

0 comments on commit e709e88

Please sign in to comment.