mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 23:00:56 -04:00
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:
parent
b6089f3b91
commit
d6408daafc
12 changed files with 107 additions and 6 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue