mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Implemented "Close to systray"
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user