mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Compare commits
3 commits
596484f5a3
...
d46b553c53
Author | SHA1 | Date | |
---|---|---|---|
|
d46b553c53 | ||
|
78c028d4e0 | ||
|
44503d2e63 |
4 changed files with 6 additions and 6 deletions
|
@ -117,7 +117,7 @@
|
|||
- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043, #5045)
|
||||
- Dev: Autogenerate docs/plugin-meta.lua. (#5055)
|
||||
- Dev: Refactor `NetworkPrivate`. (#5063)
|
||||
- Dev: Refactor `Paths` & `Updates`, focusing on reducing their singletoniability. (#5093)
|
||||
- Dev: Refactor `Paths` & `Updates`, focusing on reducing their singletoniability. (#5092)
|
||||
- Dev: Removed duplicate scale in settings dialog. (#5069)
|
||||
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
|
||||
- Dev: Added benchmark for parsing and building recent messages. (#5071)
|
||||
|
|
|
@ -120,7 +120,7 @@ Application::Application(Settings &_settings, const Paths &paths,
|
|||
, toasts(&this->emplace<Toasts>())
|
||||
, imageUploader(&this->emplace<ImageUploader>())
|
||||
, seventvAPI(&this->emplace<SeventvAPI>())
|
||||
, crashHandler(&this->emplace<CrashHandler>(new CrashHandler(paths)))
|
||||
, crashHandler(&this->emplace(new CrashHandler(paths)))
|
||||
|
||||
, commands(&this->emplace<CommandController>())
|
||||
, notifications(&this->emplace<NotificationController>())
|
||||
|
|
|
@ -228,7 +228,7 @@ void Theme::initialize(Settings &settings, const Paths &paths)
|
|||
},
|
||||
false);
|
||||
|
||||
this->loadAvailableThemes();
|
||||
this->loadAvailableThemes(paths);
|
||||
|
||||
this->update();
|
||||
}
|
||||
|
@ -328,11 +328,11 @@ std::vector<std::pair<QString, QVariant>> Theme::availableThemes() const
|
|||
return packagedThemes;
|
||||
}
|
||||
|
||||
void Theme::loadAvailableThemes()
|
||||
void Theme::loadAvailableThemes(const Paths &paths)
|
||||
{
|
||||
this->availableThemes_ = Theme::builtInThemes;
|
||||
|
||||
auto dir = QDir(getIApp()->getPaths().themesDirectory);
|
||||
auto dir = QDir(paths.themesDirectory);
|
||||
for (const auto &info :
|
||||
dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot, QDir::Name))
|
||||
{
|
||||
|
|
|
@ -169,7 +169,7 @@ private:
|
|||
*
|
||||
* NOTE: This is currently not built to be reloadable
|
||||
**/
|
||||
void loadAvailableThemes();
|
||||
void loadAvailableThemes(const Paths &paths);
|
||||
|
||||
std::optional<ThemeDescriptor> findThemeByKey(const QString &key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue