Add an optional pop-up notification when auto-turn is toggled (#496)
* Implement (most of) pop-up notification when autoturn is enabled * Add neato fading: doesn't appear to impact performance * formatting * added macro and UI for notification of auto-turn * changed notification default to true for auto-turn * added common issue for trackers * added warning for custom keys * minor documentation markdown format fixes * fix qml syntax error in atgb * gasd Co-authored-by: ykeara <ykeara1@gmail.com>
This commit is contained in:
@@ -57,4 +57,15 @@ optional<string> settingsDirectory()
|
||||
return path.toStdString();
|
||||
}
|
||||
|
||||
std::optional<std::string> verifyIconFilePath( std::string filename )
|
||||
{
|
||||
const auto notifIconPath = paths::binaryDirectoryFindFile( filename );
|
||||
if ( !notifIconPath.has_value() )
|
||||
{
|
||||
LOG( ERROR ) << "Could not find icon \"" << filename << "\"";
|
||||
}
|
||||
|
||||
return notifIconPath;
|
||||
}
|
||||
|
||||
} // namespace paths
|
||||
|
||||
@@ -12,4 +12,6 @@ optional<string> binaryDirectoryFindFile( string fileName );
|
||||
|
||||
optional<string> settingsDirectory();
|
||||
|
||||
std::optional<std::string> verifyIconFilePath( std::string filename );
|
||||
|
||||
} // namespace paths
|
||||
|
||||
Reference in New Issue
Block a user