Remove Growl warning in preferences and instead enable Growl checkboxes only if Growl is usable since we can check status on all platforms now
parent
58294f486b
commit
92299fb5cc
|
|
@ -357,3 +357,8 @@ void GrowlManager::InitiateManager()
|
|||
{
|
||||
gGrowlManager = new GrowlManager();
|
||||
}
|
||||
|
||||
bool GrowlManager::isUsable()
|
||||
{
|
||||
return (gGrowlManager && gGrowlManager->mNotifier && gGrowlManager->mNotifier->isUsable());
|
||||
}
|
||||
|
|
@ -63,6 +63,8 @@ public:
|
|||
BOOL tick();
|
||||
|
||||
static void InitiateManager();
|
||||
static bool isUsable();
|
||||
|
||||
private:
|
||||
GrowlNotifier *mNotifier;
|
||||
std::map<std::string, GrowlNotification> mNotifications;
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@
|
|||
#include "llwldaycycle.h"
|
||||
#include "llwlparammanager.h"
|
||||
// </FS:Zi>
|
||||
#include "growlmanager.h"
|
||||
|
||||
const F32 MAX_USER_FAR_CLIP = 512.f;
|
||||
const F32 MIN_USER_FAR_CLIP = 64.f;
|
||||
|
|
@ -252,21 +253,6 @@ bool callback_clear_cache(const LLSD& notification, const LLSD& response)
|
|||
return false;
|
||||
}
|
||||
|
||||
// <FS:LO> FIRE-7050 - Add a warning to the Growl preference option because of FIRE-6868
|
||||
#ifdef LL_WINDOWS
|
||||
bool callback_growl_not_installed(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if ( option == 1 ) // NO
|
||||
{
|
||||
gSavedSettings.setBOOL("FSEnableGrowl", FALSE);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
// </FS:LO>
|
||||
|
||||
bool callback_clear_browser_cache(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
|
|
@ -2317,14 +2303,16 @@ BOOL LLPanelPreference::postBuild()
|
|||
{
|
||||
getChildView("OnlineOfflinetoNearbyChatHistory")->setEnabled(getChild<LLUICtrl>("OnlineOfflinetoNearbyChat")->getValue().asBoolean());
|
||||
}
|
||||
// <FS:LO> FIRE-7050 - Add a warning to the Growl preference option because of FIRE-6868
|
||||
#ifdef LL_WINDOWS
|
||||
|
||||
// <FS:Ansariel> Only enable Growl checkboxes if Growl is usable
|
||||
if (hasChild("notify_growl_checkbox", TRUE))
|
||||
{
|
||||
getChild<LLCheckBoxCtrl>("notify_growl_checkbox")->setCommitCallback(boost::bind(&showGrowlNotInstalledWarning, _1, _2));
|
||||
getChild<LLCheckBoxCtrl>("notify_growl_checkbox")->setCommitCallback(boost::bind(&LLPanelPreference::onEnableGrowlChanged, this));
|
||||
getChild<LLCheckBoxCtrl>("notify_growl_checkbox")->setEnabled(GrowlManager::isUsable());
|
||||
getChild<LLCheckBoxCtrl>("notify_growl_always_checkbox")->setEnabled(gSavedSettings.getBOOL("FSEnableGrowl") && GrowlManager::isUsable());
|
||||
}
|
||||
#endif
|
||||
// </FS:LO>
|
||||
// </FS:Ansariel>
|
||||
|
||||
#ifdef OPENSIM // <FS:AW optional opensim support/>
|
||||
// <FS:AW Disable LSL bridge on opensim>
|
||||
if(LLGridManager::getInstance()->isInOpenSim() && !LLGridManager::getInstance()->isInAuroraSim() && hasChild("UseLSLBridge", TRUE))
|
||||
|
|
@ -2419,17 +2407,12 @@ void LLPanelPreference::showFavoritesOnLoginWarning(LLUICtrl* checkbox, const LL
|
|||
}
|
||||
}
|
||||
|
||||
// <FS:LO> FIRE-7050 - Add a warning to the Growl preference option because of FIRE-6868
|
||||
#ifdef LL_WINDOWS
|
||||
void LLPanelPreference::showGrowlNotInstalledWarning(LLUICtrl* checkbox, const LLSD& value)
|
||||
// <FS:Ansariel> Only enable Growl checkboxes if Growl is usable
|
||||
void LLPanelPreference::onEnableGrowlChanged()
|
||||
{
|
||||
if (checkbox && checkbox->getValue())
|
||||
{
|
||||
LLNotificationsUtil::add("GrowlNotInstalled",LLSD(), LLSD(), callback_growl_not_installed);
|
||||
}
|
||||
getChild<LLCheckBoxCtrl>("notify_growl_always_checkbox")->setEnabled(gSavedSettings.getBOOL("FSEnableGrowl") && GrowlManager::isUsable());
|
||||
}
|
||||
#endif
|
||||
// </FS:LO>
|
||||
// </FS:Ansariel>
|
||||
|
||||
void LLPanelPreference::cancel()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@ protected:
|
|||
// This function squirrels away the current values of the controls so that
|
||||
// cancel() can restore them.
|
||||
void saveSettings();
|
||||
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -261,11 +260,8 @@ private:
|
|||
//for "Show my Favorite Landmarks at Login"
|
||||
static void showFavoritesOnLoginWarning(LLUICtrl* checkbox, const LLSD& value);
|
||||
|
||||
// <FS:LO> FIRE-7050 - Add a warning to the Growl preference option because of FIRE-6868
|
||||
#ifdef LL_WINDOWS
|
||||
static void showGrowlNotInstalledWarning(LLUICtrl* checkbox, const LLSD& value);
|
||||
#endif
|
||||
// </FS:LO>
|
||||
// <FS:Ansariel> Only enable Growl checkboxes if Growl is usable
|
||||
void onEnableGrowlChanged();
|
||||
|
||||
typedef std::map<std::string, LLColor4> string_color_map_t;
|
||||
string_color_map_t mSavedColors;
|
||||
|
|
|
|||
|
|
@ -153,12 +153,6 @@ Wählen Sie ein einzelnes Objekt aus und versuchen Sie es erneut.
|
|||
Hinweis: Bei Aktivierung dieser Option sehen alle Personen, die diesen Computer benutzen, Ihre Lieblingsorte.
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="GrowlNotInstalled">
|
||||
WARNUNG: Wenn diese Funktion aktiviert wird, ohne dass Growl installiert ist, kann dieses zu kleinen Rucklern führen, wenn sich Freunde ein- oder ausloggen.
|
||||
Für weitere Informationen siehe http://wiki.phoenixviewer.com/fs_growl
|
||||
Soll diese Funktion dennoch aktiviert werden?
|
||||
<usetemplate name="okcancelbuttons" notext="Nein" yestext="Ja"/>
|
||||
</notification>
|
||||
<notification name="GrantModifyRights">
|
||||
Wenn Sie einem anderen Einwohner Änderungsrechte gewähren, dann kann dieser JEDES Objekt, das Sie inworld besitzen, ändern, löschen oder an sich nehmen. Seien Sie daher beim Gewähren dieser Rechte sehr vorsichtig!
|
||||
Möchten Sie [NAME] Änderungsrechte gewähren?
|
||||
|
|
|
|||
|
|
@ -368,19 +368,6 @@ Save all changes to clothing/body parts?
|
|||
name="okbutton"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="GrowlNotInstalled"
|
||||
type="alertmodal">
|
||||
WARNING: Enabling this option without having growl installed will result in small freezes when someone messages you or goes on/offline.
|
||||
Read http://wiki.phoenixviewer.com/fs_growl for more information.
|
||||
Do you stil wish to enable it?
|
||||
<usetemplate
|
||||
name="okcancelbuttons"
|
||||
notext="No"
|
||||
yestext="Yes"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
|
|
|
|||
|
|
@ -130,9 +130,8 @@
|
|||
left="10"
|
||||
name="notify_growl_checkbox"
|
||||
top_pad="2"
|
||||
width="160" />
|
||||
width="160"/>
|
||||
<check_box
|
||||
enabled_control="FSEnableGrowl"
|
||||
layout="topleft"
|
||||
follows="left|top"
|
||||
left="20"
|
||||
|
|
|
|||
|
|
@ -153,12 +153,6 @@ La inicialización del mercado ha fallado por un error del sistema o de la red.
|
|||
Nota: Al activar esta opción, cualquiera que utilice este ordenador podrá ver tu lista de lugares favoritos.
|
||||
<usetemplate name="okbutton" yestext="Aceptar"/>
|
||||
</notification>
|
||||
<notification name="GrowlNotInstalled">
|
||||
ATENCIÓN: Activar esta opción sin tener growl instalado puede dar lugar a pequeños congelamientos cuando alguien te envía un mensaje o se conecta/desconecta.
|
||||
Lee http://wiki.phoenixviewer.com/fs_growl para más información.
|
||||
¿Deseas activarlo de todas formas?
|
||||
<usetemplate name="okcancelbuttons" notext="No" yestext="Sí"/>
|
||||
</notification>
|
||||
<notification name="GrantModifyRights">
|
||||
Al conceder permisos de modificación a otro Residente, le estás permitiendo cambiar, borrar o tomar CUALQUIER objeto que tengas en el mundo. Sé MUY cuidadoso al conceder este permiso.
|
||||
¿Quieres conceder permisos de modificación a [NAME]?
|
||||
|
|
|
|||
|
|
@ -108,12 +108,6 @@ Wybierz pojedynczy obiekt i spróbuj jeszcze raz.
|
|||
Pamiętaj: kiedy włączysz tą opcję to każdy kto używa tego komputera może zobaczyć Twoją listę ulubionych miejsc.
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="GrowlNotInstalled">
|
||||
UWAGA: Jeśli Growl nie jest zainstalowany, to włączenie tej opcji będzie skutkować małymi zacięciami gdy ktoś wyśle do Ciebie wiadomość lub zaloguje/wyloguje się.
|
||||
Zobacz http://wiki.phoenixviewer.com/fs_growl, aby uzyskać więcej informacji.
|
||||
Ciągle chcesz włączyć tą opcję?
|
||||
<usetemplate name="okcancelbuttons" notext="Nie" yestext="Tak"/>
|
||||
</notification>
|
||||
<notification name="GrantModifyRights">
|
||||
Udzielenie praw modyfikacji innemu Rezydentowi umożliwia modyfikację, usuwanie lub wzięcie JAKIEGOKOLWIEK z Twoich obiektów. Używaj tej opcji z rozwagą!
|
||||
Czy chcesz udzielić prawa do modyfikacji [NAME]?
|
||||
|
|
|
|||
Loading…
Reference in New Issue