MCPcopy Create free account
hub / github.com/amule-project/amule / ShouldPrompt

Function ShouldPrompt

src/AppImageIntegration.cpp:193–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191namespace AppImageIntegration {
192
193bool ShouldPrompt()
194{
195#ifdef __WXGTK__
196 if (GetAppImagePath().IsEmpty()) {
197 // Not running from an AppImage — distro install or dev build.
198 return false;
199 }
200 if (thePrefs::IsAppImageIntegrationDeclined()) {
201 // User picked "Don't ask again" on a previous launch.
202 return false;
203 }
204 if (DesktopFileAlreadyInstalled()) {
205 // Already installed — most likely from a previous "Yes" click.
206 return false;
207 }
208 return true;
209#else
210 return false;
211#endif
212}
213
214void PromptAndInstall(wxWindow* parent)
215{

Callers 1

PromptAndInstallFunction · 0.85

Calls 3

GetAppImagePathFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected