QT: Various interface fixes (#2496)

* QT: Various interface fixes

* fix close without saving

* +

* +

using the save and close buttons, everything works fine, but when using the X button it doesn't work very well...

* fix close (X) without saving
This commit is contained in:
DanielSvoboda 2025-02-23 05:02:00 -03:00 committed by GitHub
parent 22ca57b1f2
commit e1ae052185
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 5 deletions

View file

@ -42,6 +42,7 @@ private:
void InitializeEmulatorLanguages();
void OnLanguageChanged(int index);
void OnCursorStateChanged(s16 index);
void closeEvent(QCloseEvent* event) override;
std::unique_ptr<Ui::SettingsDialog> ui;
@ -50,4 +51,6 @@ private:
QString defaultTextEdit;
int initialHeight;
bool is_saving = false;
};