Show
Ignore:
Timestamp:
03/11/08 01:51:12 (9 months ago)
Author:
flynd
Message:

Revised r6089. Toggle only online notify as we may get other popup notifications in the future. Use more specific variable/function names.

Location:
trunk/qt4-gui/src/config
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/config/general.cpp

    r6089 r6090  
    9999#endif 
    100100  iniFile.ReadBool("TrayBlink", myTrayBlink, true); 
    101   iniFile.ReadBool("TrayShowMessage", myShowMessage, true); 
     101  iniFile.ReadBool("TrayMsgOnlineNotify", myTrayMsgOnlineNotify, true); 
    102102 
    103103  iniFile.SetSection("startup"); 
     
    156156#endif 
    157157  iniFile.WriteBool("TrayBlink", myTrayBlink); 
    158   iniFile.WriteBool("TrayShowMessage", myShowMessage); 
     158  iniFile.WriteBool("TrayMsgOnlineNotify", myTrayMsgOnlineNotify); 
    159159 
    160160  iniFile.SetSection("startup"); 
     
    397397} 
    398398 
    399 void Config::General::setShowMessage(bool showMessage) 
    400 { 
    401   if (showMessage == myShowMessage) 
    402     return; 
    403  
    404   myShowMessage = showMessage; 
    405   if (myDockMode != DockTray) 
    406     return; 
    407  
    408   if (myBlockUpdates) 
    409     myDockHasChanged = true; 
    410   else 
    411     emit dockChanged(); 
     399void Config::General::setTrayMsgOnlineNotify(bool trayMsgOnlineNotify) 
     400{ 
     401  if (trayMsgOnlineNotify == myTrayMsgOnlineNotify) 
     402    return; 
     403 
     404  myTrayMsgOnlineNotify = trayMsgOnlineNotify; 
    412405} 
    413406 
  • trunk/qt4-gui/src/config/general.h

    r6089 r6090  
    9797#endif 
    9898  bool trayBlink() const { return myTrayBlink; } 
    99   bool showMessage() const { return myShowMessage; } 
     99  bool trayMsgOnlineNotify() const { return myTrayMsgOnlineNotify; } 
    100100 
    101101  unsigned short autoLogon() const { return myAutoLogon; } 
     
    138138#endif 
    139139  void setTrayBlink(bool trayBlink); 
    140   void setShowMessage(bool showMessage); 
     140  void setTrayMsgOnlineNotify(bool trayMsgOnlineNotify); 
    141141 
    142142  void setAutoLogon(unsigned short autoLogon); 
     
    211211#endif 
    212212  bool myTrayBlink; 
    213   bool myShowMessage; 
     213  bool myTrayMsgOnlineNotify; 
    214214 
    215215  // Auto status configuration