UI: OptionsPage: Minor refactor

This commit is contained in:
Nodir Temirkhodjaev 2023-03-11 20:33:53 +03:00
parent e684bc51a8
commit 42a40df8d5

View File

@ -464,7 +464,7 @@ void OptionsPage::setupGlobalBox()
ini()->setExplorerIntegrated(checked);
ctrl()->setIniEdited();
});
m_cbExplorerMenu->setEnabled(settings()->hasService() || settings()->isUserAdmin());
m_cbExplorerMenu->setEnabled(settings()->hasMasterAdmin());
m_cbHotKeys = ControlUtil::createCheckBox(iniUser()->hotKeyEnabled(), [&](bool checked) {
iniUser()->setHotKeyEnabled(checked);