mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Added guards for colorSchemechanged and Qt::ColorScheme. updated workflow to save apt cache
This commit is contained in:
@@ -155,10 +155,12 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
QObject::connect(&app, &QCoreApplication::aboutToQuit, &controller,
|
||||
[&controller]() { controller.stop(); });
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
QObject::connect(app.styleHints(), &QStyleHints::colorSchemeChanged, &tray,
|
||||
[&tray, &resolve_tray_icon](Qt::ColorScheme) {
|
||||
tray.setIcon(resolve_tray_icon());
|
||||
});
|
||||
#endif
|
||||
|
||||
tray.setContextMenu(&tray_menu);
|
||||
tray.show();
|
||||
|
||||
Reference in New Issue
Block a user