add pressure control flag on size and flow, change data directory in OSX to Documents

This commit is contained in:
2017-09-24 18:55:15 +01:00
parent 78484c53a4
commit 04841a996b
14 changed files with 80 additions and 46 deletions

View File

@@ -1,5 +1,6 @@
#include "pch.h"
#include "log.h"
#include "app.h"
LogRemote LogRemote::I;
@@ -71,7 +72,7 @@ void LogRemote::net_close()
void LogRemote::file_init()
{
if (!m_logfile.is_open())
m_logfile.open("log.txt");
m_logfile.open(App::I.data_path + "/panopainter-log.txt");
}
void LogRemote::file_close()
{
@@ -130,4 +131,4 @@ LogRemote::~LogRemote()
m_mq.UnlockGetters();
if (m_thread.joinable())
m_thread.join();
}
}