Skip to content

Commit

Permalink
void doesnt return null
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMario211 committed Nov 5, 2023
1 parent 6b7d2cc commit 3ab87f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ bool isApplicationRunning(const std::string& appName) {
// Check if the result contains "true" (application is running)
return (result.find("true") != std::string::npos);
}
void* MuteApplication(void* self) {
void MuteApplication() {
std::string targetName = Mod::get()->getSettingValue<SettingAppStruct>("spotifyApp").m_application;
// Remove the ".app" extension if it exists
size_t dotAppPos = targetName.find(".app");
Expand All @@ -369,10 +369,8 @@ void* MuteApplication(void* self) {
system((muteCommand + "0'").c_str());
log::info(targetName + " has been muted.");
}
return NULL;
} else {
log::info("Couldn't find application " + targetName + ", aborting.");
return NULL;
}
}
void toggleSpotifyMute(bool automatic = false, bool muted = false) {
Expand Down

0 comments on commit 3ab87f6

Please sign in to comment.