mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-24 22:09:10 -06:00
telling browser to reload collection on reload
This commit is contained in:
@@ -55,12 +55,15 @@ namespace {
|
||||
TargetBrowserPair* pair = module->pair(id);
|
||||
if (pair) {
|
||||
pair->browser()->setIsInitialized(false);
|
||||
pair->browser()->setImageCollectionIsLoaded(false);
|
||||
pair->browser()->reload();
|
||||
}
|
||||
}
|
||||
else {
|
||||
const std::vector<std::unique_ptr<TargetBrowserPair>>& pairs = module->pairs();
|
||||
for (const std::unique_ptr<TargetBrowserPair>& pair : pairs) {
|
||||
pair->browser()->setIsInitialized(false);
|
||||
pair->browser()->setImageCollectionIsLoaded(false);
|
||||
pair->browser()->reload();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user