mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
- Implemented "Close to systray"
This commit is contained in:
parent
a22afba059
commit
78aef3c3bc
6 changed files with 35 additions and 2 deletions
|
@ -862,6 +862,11 @@ void GUI::showAbout(){
|
|||
|
||||
// Called when we close the program
|
||||
void GUI::closeEvent(QCloseEvent *e){
|
||||
if(options->getGoToSysTrayOnExitingWindow() && !this->isHidden()){
|
||||
hide();
|
||||
e->ignore();
|
||||
return;
|
||||
}
|
||||
if(options->getConfirmOnExit()){
|
||||
if(QMessageBox::question(this,
|
||||
tr("Are you sure you want to quit? -- qBittorrent"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue