| 102 | } |
| 103 | |
| 104 | void UserPrefsEditor::Show() |
| 105 | { |
| 106 | SetPosition(100 / TheSynth->GetUIScale() - TheSynth->GetDrawOffset().x, 250 / TheSynth->GetUIScale() - TheSynth->GetDrawOffset().y); |
| 107 | |
| 108 | UpdateDropdowns({}); |
| 109 | SetShowing(true); |
| 110 | |
| 111 | if (TheSynth->HasFatalError()) |
| 112 | { |
| 113 | mSaveButton->SetLabel("save and exit"); |
| 114 | mCancelButton->SetShowing(false); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | void UserPrefsEditor::CreatePrefsFileIfNonexistent() |
| 119 | { |
no test coverage detected