File tree Expand file tree Collapse file tree
include/nui-file-explorer
source/nui-file-explorer/side Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ namespace NuiFileExplorer
3131
3232 void isSelected (bool value)
3333 {
34- *selected_ = value;
34+ if (selected_->value () != value)
35+ *selected_ = value;
3536 }
3637
3738 explicit ItemWithInternals (Item const & item)
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ namespace NuiFileExplorer
134134 const bool selected = (inRange (i) && ctrlRemove_.count (i) == 0 ) || ctrlAdd_.count (i) > 0 ;
135135 vec[i].isSelected (selected);
136136 }
137- items_-> modifyNow ();
137+ Nui::globalEventContext. sync ();
138138 }
139139
140140 // =========================================================================
@@ -154,7 +154,7 @@ namespace NuiFileExplorer
154154 loseTrackToAllSelections ();
155155 for (auto & item : items_->value ())
156156 item.isSelected (false );
157- items_-> modifyNow ();
157+ Nui::globalEventContext. sync ();
158158 }
159159
160160 void SelectionManager::selectAll ()
You can’t perform that action at this time.
0 commit comments