Don't disappear forever when Ctrl+W is used
This commit is contained in:
parent
91057acd78
commit
c70fb01c44
@ -511,7 +511,7 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
|
||||
|
||||
QShortcut* close_window_shortcut = new QShortcut(this);
|
||||
close_window_shortcut->setKey(Qt::CTRL + Qt::Key_W);
|
||||
connect(close_window_shortcut, SIGNAL(activated()), SLOT(hide()));
|
||||
connect(close_window_shortcut, SIGNAL(activated()), SLOT(SetHiddenInTray()));
|
||||
|
||||
library_->Init();
|
||||
library_->StartThreads();
|
||||
|
@ -142,6 +142,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
|
||||
void ShowLibraryConfig();
|
||||
void ReloadSettings();
|
||||
void SetHiddenInTray() { SetHiddenInTray(true); }
|
||||
|
||||
void AddFile();
|
||||
void AddFolder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user