refactor: SettingsDialog hide Advanced tab for portable version on windows
This commit is contained in:
@ -31,8 +31,8 @@ SettingsDialog::SettingsDialog(QWidget *parent, const IServerConfig &serverConfi
|
|||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
// no advanced options on macOS
|
// hide advanced options on macOS and portable windows
|
||||||
if (deskflow::platform::isMac()) {
|
if (deskflow::platform::isMac() || (deskflow::platform::isWindows() && Settings::isPortableMode())) {
|
||||||
ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabAdvanced));
|
ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabAdvanced));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user