mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
fixed settings for tray message enable/disable
now it can be enabled and disabled at runtime git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3141 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6d3db4ae66
commit
1585859896
7 changed files with 90 additions and 73 deletions
|
@ -172,24 +172,17 @@ int main(int argc, char *argv[])
|
|||
|
||||
QObject::connect(ConfCertDialog::instance(),SIGNAL(configChanged()),w->networkDialog,SLOT(insertConnect())) ;
|
||||
QObject::connect(w->peersDialog,SIGNAL(friendsUpdated()),w->networkDialog,SLOT(insertConnect())) ;
|
||||
|
||||
{
|
||||
if(Settings->value(QString::fromUtf8("DisplayTrayGroupChat"), true).toBool())
|
||||
{
|
||||
QObject::connect(w->peersDialog,SIGNAL(notifyGroupChat(const QString&,const QString&)),w,SLOT(displaySystrayMsg(const QString&,const QString&)),Qt::QueuedConnection) ;
|
||||
}
|
||||
}
|
||||
|
||||
w->installGroupChatNotifier();
|
||||
|
||||
QObject::connect(w->messengerWindow,SIGNAL(startChat(QTreeWidgetItem* )),w->peersDialog,SLOT(chatfriend(QTreeWidgetItem* ))) ;
|
||||
QObject::connect(w->idle, SIGNAL(secondsIdle(int)), w->messengerWindow, SLOT(checkAndSetIdle(int)));
|
||||
|
||||
/* only show window, if not startMinimized */
|
||||
if(!Settings->value(QString::fromUtf8("StartMinimized"), false).toBool())
|
||||
{
|
||||
/* only show window, if not startMinimized */
|
||||
if(!Settings->value(QString::fromUtf8("StartMinimized"), false).toBool())
|
||||
{
|
||||
|
||||
w->show();
|
||||
}
|
||||
w->show();
|
||||
}
|
||||
|
||||
/* Startup a Timer to keep the gui's updated */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue