These reports were embedded in the window manager DNA, but they were always cleared when reading it from files. It's clearer to just not store the reports in files at all. I also moved the reports initialization and freeing to the constructor and destructor of the runtime class. This is the only place `ReportList` was embedded in DNA, so after this we can move that to use C++ features if we want. Pull Request: https://projects.blender.org/blender/blender/pulls/118329
24 lines
471 B
C++
24 lines
471 B
C++
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "DNA_windowmanager_types.h"
|
|
|
|
namespace blender::bke {
|
|
|
|
class WindowManagerRuntime {
|
|
public:
|
|
/** Indicates whether interface is locked for user interaction. */
|
|
bool is_interface_locked = false;
|
|
|
|
/** Information and error reports. */
|
|
ReportList reports;
|
|
|
|
WindowManagerRuntime();
|
|
~WindowManagerRuntime();
|
|
};
|
|
|
|
} // namespace blender::bke
|