locig: refresh after edit project
* implemented saving project settings force-refreshes the project if something has changed. * when nothing has changed while editing the project settings, the project is not refreshed anymore. * new project window is cleared now before it is displayed.
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
class MessageLoadProject: public Message<MessageLoadProject>
|
||||
{
|
||||
public:
|
||||
MessageLoadProject(const std::string& filePath)
|
||||
MessageLoadProject(const std::string& filePath, bool forceRefresh)
|
||||
: projectSettingsFilePath(filePath)
|
||||
, forceRefresh(forceRefresh)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -18,10 +19,11 @@ public:
|
||||
|
||||
virtual void print(std::ostream& os) const
|
||||
{
|
||||
os << projectSettingsFilePath;
|
||||
os << projectSettingsFilePath << ", forceRefresh: " << std::boolalpha << forceRefresh;
|
||||
}
|
||||
|
||||
const std::string projectSettingsFilePath;
|
||||
const bool forceRefresh;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_LOAD_PROJECT_H
|
||||
|
||||
Reference in New Issue
Block a user