Split mac UI state saving
This commit is contained in:
@@ -169,4 +169,11 @@ void AppleDocumentPlatformServices::set_cursor_visible(bool visible) const
|
||||
#endif
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::save_ui_state() const
|
||||
{
|
||||
#if defined(__OSX__)
|
||||
[App::I->osx_app save_ui_state];
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
void display_file(std::string_view path) const;
|
||||
void share_file(std::string_view path) const;
|
||||
void set_cursor_visible(bool visible) const;
|
||||
void save_ui_state() const;
|
||||
|
||||
private:
|
||||
PlatformFamily family_;
|
||||
|
||||
@@ -451,9 +451,7 @@ public:
|
||||
{
|
||||
if (!pp::platform::platform_saves_native_ui_state(pp::platform::current_platform_family()))
|
||||
return;
|
||||
#ifdef __OSX__
|
||||
[App::I->osx_app save_ui_state];
|
||||
#endif
|
||||
active_apple_document_platform_services().save_ui_state();
|
||||
}
|
||||
|
||||
[[nodiscard]] bool enables_live_asset_reloading() override
|
||||
|
||||
Reference in New Issue
Block a user