Restore the old toggle behavior of the special inventory floaters
This commit is contained in:
@@ -33,6 +33,13 @@ class LFFloaterInvPanel : public LLFloater, public LLInstanceTracker<LFFloaterIn
|
||||
|
||||
public:
|
||||
static void show(const LLSD& cat, const std::string& name = LLStringUtil::null, LLInventoryModel* model = nullptr); // Show the floater for cat (create with other params if necessary)
|
||||
static void toggle(const LLSD& cat)
|
||||
{
|
||||
if (auto instance = getInstance(cat))
|
||||
instance->close();
|
||||
else
|
||||
show(cat);
|
||||
}
|
||||
static void closeAll(); // Called when not allowed to have inventory open
|
||||
|
||||
/*virtual*/ BOOL handleKeyHere(KEY key, MASK mask);
|
||||
|
||||
@@ -8938,7 +8938,7 @@ class SinguUrlAction : public view_listener_t
|
||||
|
||||
void show_inv_floater(const LLSD& userdata, const std::string& field)
|
||||
{
|
||||
LFFloaterInvPanel::show(LLSD().with(field, userdata));
|
||||
LFFloaterInvPanel::toggle(LLSD().with(field, userdata));
|
||||
}
|
||||
|
||||
static void visible_inv_floater(const LLSD& userdata, const std::string& field)
|
||||
|
||||
Reference in New Issue
Block a user