| 621 | } |
| 622 | |
| 623 | void SaveWindowPosition( const char* label, ImGuiWindow* window ) |
| 624 | { |
| 625 | if ( window ) |
| 626 | { |
| 627 | auto& config = Config::instance(); |
| 628 | auto dpJson = config.getJsonValue( "DialogPositions" ); |
| 629 | serializeToJson( Vector2i{ int( window->Pos.x ), int( window->Pos.y ) }, dpJson[label] ); |
| 630 | config.setJsonValue( "DialogPositions", dpJson ); |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | void SaveWindowPosition( const char* label ) |
| 635 | { |
no test coverage detected