Added new option to hide the tabbar with one open tab in forums and channels.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7450 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-07-14 21:29:51 +00:00
parent b6089f3b91
commit d6408daafc
12 changed files with 107 additions and 6 deletions

View file

@ -985,7 +985,7 @@ void RshareSettings::setForumExpandNewMessages(bool value)
bool RshareSettings::getForumOpenAllInNewTab()
{
return valueFromGroup("ForumDialog", "OpenAllInNewTab", true).toBool();
return valueFromGroup("ForumDialog", "OpenAllInNewTab", false).toBool();
}
void RshareSettings::setForumOpenAllInNewTab(bool value)
@ -993,9 +993,19 @@ void RshareSettings::setForumOpenAllInNewTab(bool value)
setValueToGroup("ForumDialog", "OpenAllInNewTab", value);
}
bool RshareSettings::getForumHideTabBarWithOneTab()
{
return valueFromGroup("ForumDialog", "HideTabBarWithOneTab", true).toBool();
}
void RshareSettings::setForumHideTabBarWithOneTab(bool value)
{
setValueToGroup("ForumDialog", "HideTabBarWithOneTab", value);
}
bool RshareSettings::getChannelOpenAllInNewTab()
{
return valueFromGroup("ChannelDialog", "OpenAllInNewTab", true).toBool();
return valueFromGroup("ChannelDialog", "OpenAllInNewTab", false).toBool();
}
void RshareSettings::setChannelOpenAllInNewTab(bool value)
@ -1003,6 +1013,16 @@ void RshareSettings::setChannelOpenAllInNewTab(bool value)
setValueToGroup("ChannelDialog", "OpenAllInNewTab", value);
}
bool RshareSettings::getChannelHideTabBarWithOneTab()
{
return valueFromGroup("ChannelDialog", "HideTabBarWithOneTab", true).toBool();
}
void RshareSettings::setChannelHideTabBarWithOneTab(bool value)
{
setValueToGroup("ChannelDialog", "HideTabBarWithOneTab", value);
}
/* time before idle */
uint RshareSettings::getMaxTimeBeforeIdle()
{