mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Show the new setting for starting minimized on system start only for Windows.
Cleaned some methods for accessing the settings. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3912 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0d5dfc9258
commit
b8bd6bfdca
10 changed files with 54 additions and 93 deletions
|
@ -1085,7 +1085,7 @@ void MainWindow::createActions()
|
|||
*/
|
||||
void MainWindow::doQuit()
|
||||
{
|
||||
if(!Settings->value(QString::fromUtf8("doQuit"), false).toBool())
|
||||
if(!Settings->value("doQuit", false).toBool())
|
||||
{
|
||||
QString queryWrn;
|
||||
queryWrn.clear();
|
||||
|
@ -1111,7 +1111,7 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
|||
{
|
||||
static bool firstTime = true;
|
||||
|
||||
if(!Settings->value(QString::fromUtf8("ClosetoTray"), false).toBool())
|
||||
if(!Settings->getCloseToTray())
|
||||
{
|
||||
if (trayIcon->isVisible()) {
|
||||
if (firstTime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue