Desktop undo registration wont undo downloader registration

This commit is contained in:
David Kocik 2023-02-15 16:41:00 +01:00
parent 0ccea3bed9
commit e2762bd7d7

View File

@ -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);
} }