mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix closing of pre-launch windows.
This commit is contained in:
parent
316f0537c4
commit
bd90cc4134
2 changed files with 8 additions and 18 deletions
|
@ -206,6 +206,7 @@ void NotStartedWindow::updateControls() {
|
|||
|
||||
void NotStartedWindow::closeEvent(QCloseEvent *e) {
|
||||
deleteLater();
|
||||
App::quit();
|
||||
}
|
||||
|
||||
void NotStartedWindow::resizeEvent(QResizeEvent *e) {
|
||||
|
@ -964,11 +965,6 @@ void LastCrashedWindow::onUpdateFailed() {
|
|||
}
|
||||
|
||||
void LastCrashedWindow::onContinue() {
|
||||
if (CrashReports::Restart() == CrashReports::CantOpen) {
|
||||
new NotStartedWindow();
|
||||
} else {
|
||||
_launch();
|
||||
}
|
||||
close();
|
||||
}
|
||||
|
||||
|
@ -1017,6 +1013,12 @@ void LastCrashedWindow::onSendingProgress(qint64 uploaded, qint64 total) {
|
|||
|
||||
void LastCrashedWindow::closeEvent(QCloseEvent *e) {
|
||||
deleteLater();
|
||||
|
||||
if (CrashReports::Restart() == CrashReports::CantOpen) {
|
||||
new NotStartedWindow();
|
||||
} else {
|
||||
_launch();
|
||||
}
|
||||
}
|
||||
|
||||
void LastCrashedWindow::resizeEvent(QResizeEvent *e) {
|
||||
|
@ -1142,6 +1144,7 @@ void NetworkSettingsWindow::onSave() {
|
|||
}
|
||||
|
||||
void NetworkSettingsWindow::closeEvent(QCloseEvent *e) {
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
void NetworkSettingsWindow::updateControls() {
|
||||
|
|
|
@ -234,16 +234,3 @@ private:
|
|||
QWidget *_parent;
|
||||
|
||||
};
|
||||
|
||||
class ShowCrashReportWindow : public PreLaunchWindow {
|
||||
public:
|
||||
ShowCrashReportWindow(const QString &text);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private:
|
||||
PreLaunchLog _log;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue