mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 15:21:19 -05:00
Change to a pin/bookmark icon.
Added shortcut (Ctrl/Cmd+B) to pin/unpin actions. Clear unresolved pinned actions when switching between modes. Fixed scroll-back issue when scrolling to pin action
This commit is contained in:
1 parent
2346b5c259
commit
a0ba8e12e5
4 files changed
+68
-24
No files matched your search
@@ -127,7 +127,7 @@ void SpeedDialWebDialog::handle_web_command(const nlohmann::json& payload)
|
||||
send_actions();
|
||||
} else if (command == "toggle_favourite") {
|
||||
// set_favourite() refuses once the bar hits kFavLimit; tell the page so it can undo the
|
||||
// star and show a "favourites are full" hint instead of silently losing the pin.
|
||||
// pin and show a "favourites are full" hint instead of silently losing the favourite.
|
||||
const std::string fav_id = payload.value("id", "");
|
||||
const bool ok = wxGetApp().action_registry().set_favourite(fav_id, payload.value("fav", false));
|
||||
if (!ok)
|
||||
|
||||
Reference in new issue
Block a user