IA6ZRM【主题制作工坊】【次要】【全局主题】上传全局主题效果图后创建安装该主题,重新修改除了全局主题效果图外的内容后创建安装,控制面板-主题封面依然会显示图片

This commit is contained in:
like 2024-06-21 16:02:31 +08:00
parent 73048f8e6d
commit 969ca44c20
1 changed files with 3 additions and 0 deletions

View File

@ -42,13 +42,16 @@ void Bridge::wallpaperPathChanged(QString path)
// +m_time + "/src/globalTheme/theme.conf"); // +m_time + "/src/globalTheme/theme.conf");
m_configfilemanager->copyPictoCacheDir(m_wallpaperpath,QDir::homePath()+"/.cache/theme-build/" m_configfilemanager->copyPictoCacheDir(m_wallpaperpath,QDir::homePath()+"/.cache/theme-build/"
+m_time+"/src/globalTheme","wallpaper"); +m_time+"/src/globalTheme","wallpaper");
m_wallpaperpath = ":/resource/background/1-openkylin.jpg";
} }
void Bridge::coverPathChanged(QString path) void Bridge::coverPathChanged(QString path)
{ {
m_coverpath = path; m_coverpath = path;
m_configfilemanager->copyPictoCacheDir(m_coverpath,QDir::homePath()+"/.cache/theme-build/" m_configfilemanager->copyPictoCacheDir(m_coverpath,QDir::homePath()+"/.cache/theme-build/"
+m_time+"/src/globalTheme","cover"); +m_time+"/src/globalTheme","cover");
m_coverpath = ":/resource/background/custom-preview.png";
} }
void Bridge::radiusChanged(int radius) void Bridge::radiusChanged(int radius)