We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6631c8e commit 245ce42Copy full SHA for 245ce42
1 file changed
src/ruis/style/style_provider.cpp
@@ -35,11 +35,22 @@ void style_provider::set(utki::shared_ref<style_sheet> ss)
35
{
36
this->cur_style_sheet = std::move(ss);
37
38
- std::vector<std::string_view> keys_to_remove;
+ // ==== reload standard cache ====
39
+ for (auto [v, id] : this->standard_cache.zip_with_enum()) {
40
+ auto sv = v.lock();
41
+ if (!sv) {
42
+ continue;
43
+ }
44
+
45
+ sv->reload(
46
+ this->cur_style_sheet.get().get(id), //
47
+ this->res_loader.get()
48
+ );
49
50
- // TODO: reload standard cache
51
+ // ==== reload user cache ====
52
+ std::vector<std::string_view> keys_to_remove;
53
- // reload cache
54
for (auto& pair : this->user_cache) {
55
auto sv = pair.second.lock();
56
if (!sv) {
0 commit comments