Fix flameshot not exiting when it should (#2223)

* Remove unused methods from Controller

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix flameshot exit bug

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove unnecessary code

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Some more refactoring

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
Haris Gušić
2022-01-04 15:02:06 +01:00
committed by GitHub
parent 179f658cd8
commit 883e55c52d
5 changed files with 4 additions and 22 deletions

View File

@@ -69,7 +69,6 @@ Controller::Controller()
#endif
{
m_appLatestVersion = QStringLiteral(APP_VERSION).replace("v", "");
qApp->setQuitOnLastWindowClosed(false);
QString StyleSheet = CaptureButton::globalStyleSheet();
qApp->setStyleSheet(StyleSheet);
@@ -134,11 +133,6 @@ void Controller::setCheckForUpdatesEnabled(const bool enabled)
}
}
QMap<uint, CaptureRequest>& Controller::requests()
{
return m_requestMap;
}
void Controller::getLatestAvailableVersion()
{
// This features is required for MacOS and Windows user and for Linux users
@@ -535,13 +529,6 @@ void Controller::sendTrayNotification(const QString& text,
}
}
void Controller::updateConfigComponents()
{
if (m_configWindow) {
m_configWindow->updateChildren();
}
}
void Controller::showRecentUploads()
{
static HistoryWidget* historyWidget = nullptr;