mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Tray: Show settings dialog on click if it's not active
Before, you often had to click twice to bring the window to the front, because the first click would close it.
This commit is contained in:
parent
9955b0756a
commit
4b5c3d8f09
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ void ownCloudGui::slotOpenSettingsDialog()
|
|||
{
|
||||
// if account is set up, start the configuration wizard.
|
||||
if( !AccountManager::instance()->accounts().isEmpty() ) {
|
||||
if (_settingsDialog.isNull() || !_settingsDialog->isVisible()) {
|
||||
if (_settingsDialog.isNull() || QApplication::activeWindow() != _settingsDialog) {
|
||||
slotShowSettings();
|
||||
} else {
|
||||
_settingsDialog->close();
|
||||
|
|
Loading…
Reference in a new issue