Fix type conversion for file dialog options
This commit is contained in:
parent
f3db5d1097
commit
d0adbf1224
1 changed files with 6 additions and 1 deletions
|
|
@ -50,6 +50,11 @@ QString FileDialogTypeLabel(int value) {
|
||||||
return Platform::FileDialog::ImplementationTypeLabel(typedValue);
|
return Platform::FileDialog::ImplementationTypeLabel(typedValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString FileDialogTypeDescription(int value) {
|
||||||
|
const auto typedValue = Platform::FileDialog::ImplementationType(value);
|
||||||
|
return Platform::FileDialog::ImplementationTypeDescription(typedValue);
|
||||||
|
}
|
||||||
|
|
||||||
QString NetBoostLabel(int boost) {
|
QString NetBoostLabel(int boost) {
|
||||||
switch (boost) {
|
switch (boost) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -478,7 +483,7 @@ void SetupKotatoSystem(
|
||||||
int(cFileDialogType()),
|
int(cFileDialogType()),
|
||||||
int(Platform::FileDialog::ImplementationType::Count),
|
int(Platform::FileDialog::ImplementationType::Count),
|
||||||
FileDialogTypeLabel,
|
FileDialogTypeLabel,
|
||||||
Platform::FileDialog::ImplementationTypeDescription,
|
FileDialogTypeDescription,
|
||||||
[=](int value) {
|
[=](int value) {
|
||||||
cSetFileDialogType(Platform::FileDialog::ImplementationType(value));
|
cSetFileDialogType(Platform::FileDialog::ImplementationType(value));
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue