mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:55:53 +08:00
Desktop undo registration wont undo downloader registration
This commit is contained in:
parent
0ccea3bed9
commit
e2762bd7d7
@ -435,6 +435,7 @@ void DesktopIntegrationDialog::perform_desktop_integration(bool perform_download
|
|||||||
"Type=Application\n"
|
"Type=Application\n"
|
||||||
"MimeType=x-scheme-handler/prusaslicer;\n"
|
"MimeType=x-scheme-handler/prusaslicer;\n"
|
||||||
"StartupNotify=false\n"
|
"StartupNotify=false\n"
|
||||||
|
"NoDisplay=true\n"
|
||||||
, name_suffix, version_suffix, excutable_path, version_suffix);
|
, name_suffix, version_suffix, excutable_path, version_suffix);
|
||||||
|
|
||||||
// desktop file for downloader as part of main app
|
// desktop file for downloader as part of main app
|
||||||
@ -487,12 +488,7 @@ void DesktopIntegrationDialog::undo_desktop_intgration()
|
|||||||
std::remove(path.c_str());
|
std::remove(path.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// URL Protocol
|
// URL Protocol - removed only by undo_downloader_registration now
|
||||||
path = std::string(app_config->get("desktop_integration_URL_path"));
|
|
||||||
if (!path.empty()) {
|
|
||||||
BOOST_LOG_TRIVIAL(debug) << "removing " << path;
|
|
||||||
std::remove(path.c_str());
|
|
||||||
}
|
|
||||||
wxGetApp().plater()->get_notification_manager()->push_notification(NotificationType::UndoDesktopIntegrationSuccess);
|
wxGetApp().plater()->get_notification_manager()->push_notification(NotificationType::UndoDesktopIntegrationSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user