Skip to content

Commit

Permalink
[glass] Fix order of loading window settings (#6056)
Browse files Browse the repository at this point in the history
  • Loading branch information
truher authored Dec 23, 2023
1 parent 22a322c commit ab309e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions glass/src/lib/native/cpp/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ static bool LoadStorageRootImpl(Context* ctx, const std::string& filename,

static bool LoadStorageImpl(Context* ctx, std::string_view dir,
std::string_view name) {
WorkspaceResetImpl();

bool rv = true;
for (auto&& root : ctx->storageRoots) {
std::string filename;
Expand Down Expand Up @@ -421,6 +419,7 @@ std::string glass::GetStorageDir() {
bool glass::LoadStorage(std::string_view dir) {
SaveStorage();
SetStorageDir(dir);
WorkspaceResetImpl();
LoadWindowStorageImpl((fs::path{gContext->storageLoadDir} /
fmt::format("{}-window.json", gContext->storageName))
.string());
Expand Down

0 comments on commit ab309e3

Please sign in to comment.