|
Lines 346-352
Link Here
|
| 346 |
} |
346 |
} |
| 347 |
|
347 |
|
| 348 |
void AdjustUserShareWidgets () { |
348 |
void AdjustUserShareWidgets () { |
| 349 |
foreach (symbol t, [`group, `max_shares], { |
349 |
foreach (symbol t, [`group, `max_shares, `guest_ch], { |
| 350 |
UI::ChangeWidget (`id(t), `Enabled, |
350 |
UI::ChangeWidget (`id(t), `Enabled, |
| 351 |
(boolean) UI::QueryWidget(`id(`share_ch),`Value) |
351 |
(boolean) UI::QueryWidget(`id(`share_ch),`Value) |
| 352 |
); |
352 |
); |
|
Lines 365-370
Link Here
|
| 365 |
Samba::stop_services = false; |
365 |
Samba::stop_services = false; |
| 366 |
} |
366 |
} |
| 367 |
Samba::SetShares (max,(string)UI::QueryWidget(`id(`group),`Value)); |
367 |
Samba::SetShares (max,(string)UI::QueryWidget(`id(`group),`Value)); |
|
|
368 |
Samba::SetGuessAccess (new_share && |
| 369 |
(boolean)UI::QueryWidget(`id(`guest_ch), `Value)); |
| 370 |
|
| 368 |
SambaServer::SetModified(); |
371 |
SambaServer::SetModified(); |
| 369 |
} |
372 |
} |
| 370 |
|
373 |
|