mirror of
https://github.com/rizinorg/cutter
synced 2026-08-11 16:23:06 -04:00
Fix portable rizin system themes loading (#3632)
Regression introduced in 4e53fd64 for the macOS application bundle:
rz_path_set_prefix() is only applied to the core-global RzPath instance,
but the ColorThemeWorker created its own instance, ignoring this
setting.
This led to the message box saying "The Rizin standard themes could not
be found in..." on startup.
This commit is contained in:
parent
aedf4e8170
commit
d48436b8e2
1 changed files with 2 additions and 3 deletions
|
|
@ -56,8 +56,8 @@ ColorThemeWorker::ColorThemeWorker(QObject *parent) : QObject(parent)
|
|||
QDir().mkpath(customRzThemesLocationPath);
|
||||
}
|
||||
|
||||
RzPath *sysPath = rz_path_new();
|
||||
const char *themeDir = rz_path_system(sysPath, RZ_THEMES);
|
||||
RzCoreLocked core = Core()->lock();
|
||||
const char *themeDir = rz_path_system(core->sys_path, RZ_THEMES);
|
||||
const QDir currDir { themeDir };
|
||||
if (currDir.exists()) {
|
||||
standardRzThemesLocationPath = currDir.absolutePath();
|
||||
|
|
@ -67,7 +67,6 @@ ColorThemeWorker::ColorThemeWorker(QObject *parent) : QObject(parent)
|
|||
"Most likely, Rizin is not properly installed.")
|
||||
.arg(currDir.path()));
|
||||
}
|
||||
rz_path_free(sysPath);
|
||||
}
|
||||
|
||||
QColor ColorThemeWorker::mergeColors(const QColor &upper, const QColor &lower) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue