From ddcfe56eda9e0d42bd04984a348cdf37606a8c15 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 1 Mar 2021 19:14:13 +0200 Subject: [PATCH] improve exported view template name --use also the layout name as first part of the proposed name --- app/settings/exporttemplatedialog/exporttemplatehandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/settings/exporttemplatedialog/exporttemplatehandler.cpp b/app/settings/exporttemplatedialog/exporttemplatehandler.cpp index 9f5f0d33d..5fc7638d1 100644 --- a/app/settings/exporttemplatedialog/exporttemplatehandler.cpp +++ b/app/settings/exporttemplatedialog/exporttemplatehandler.cpp @@ -72,9 +72,9 @@ ExportTemplateHandler::ExportTemplateHandler(Dialog::ExportTemplateDialog *paren ExportTemplateHandler::ExportTemplateHandler(Dialog::ExportTemplateDialog *parentDialog, Latte::View *view) : ExportTemplateHandler(parentDialog) { - QString name = (view->type() == Latte::Types::PanelView ? i18n("Panel") : i18n("Dock")); + QString type = (view->type() == Latte::Types::PanelView ? i18n("Panel") : i18n("Dock")); loadViewApplets(view); - o_filepath = parentDialog->corona()->templatesManager()->proposedTemplateAbsolutePath(name + ".view.latte"); + o_filepath = parentDialog->corona()->templatesManager()->proposedTemplateAbsolutePath(view->layout()->name() + " " + type + ".view.latte"); setFilepath(o_filepath); }