mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-04 01:28:07 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user