Tracerestrict: Fix default state of copy/share button planes

This commit is contained in:
Jonathan G Rennison
2023-05-16 23:13:55 +01:00
parent 731f2fb46e
commit 29495b4e3d

View File

@@ -3004,6 +3004,9 @@ private:
this->EnableWidget(TR_WIDGET_COPY_APPEND);
this->EnableWidget(TR_WIDGET_SHARE_ONTO);
this->base_copy_plane = DPC_DUPLICATE;
this->base_share_plane = DPS_SHARE;
if (prog != nullptr && prog->refcount > 1) {
// program is shared, show and enable unshare button, and reset button
this->base_share_plane = DPS_UNSHARE;