fix stroke preview, add license messages, fix node scroll

This commit is contained in:
2019-01-29 22:33:40 +01:00
parent 36d034dfd9
commit 56fa1079c6
9 changed files with 64 additions and 9 deletions

View File

@@ -308,6 +308,12 @@ void App::dialog_browse()
void App::dialog_save_ver()
{
if (!check_license())
{
message_box("License", "This function is disabled in demo mode.");
return;
}
int current = 0;
std::string next = doc_name + ".01";
std::string base = doc_name;
@@ -338,6 +344,12 @@ void App::dialog_save_ver()
void App::dialog_save()
{
if (!check_license())
{
message_box("License", "This function is disabled in demo mode.");
return;
}
if (canvas)
{
auto dialog = std::make_shared<NodeDialogSave>();
@@ -402,6 +414,12 @@ void App::dialog_save()
void App::dialog_export()
{
if (!check_license())
{
message_box("License", "This function is disabled in demo mode.");
return;
}
if (canvas)
{
// TODO: use picker