This commit is contained in:
Vadim Lopatin 2016-10-18 12:25:27 +03:00
parent 0d20c251eb
commit 92d466dfff
3 changed files with 4 additions and 3 deletions

View File

@ -1122,7 +1122,7 @@ final class Setting {
}
/// returns setting by path like "editors/sourceEditor/tabSize", creates object tree "editors/sourceEditor" and object of specified type if part of path does not exist.
Setting settingByPath(string path, SettingType type) {
Setting settingByPath(string path, SettingType type, bool createIfNotExist = true) {
if (_type != SettingType.OBJECT)
clear(SettingType.OBJECT);
string part1, part2;
@ -1136,7 +1136,7 @@ final class Setting {
return s.settingByPath(part2, type);
} else {
auto s = this[path];
if (!s) {
if (!s && createIfNotExist) {
s = new Setting();
s.clear(type);
this[path] = s;

View File

@ -1789,6 +1789,7 @@ int sdlmain(string[] args) {
auto sdl = new SDLPlatform;
Platform.setInstance(sdl);
Platform.instance.uiTheme = "theme_default";
int res = 0;

View File

@ -1366,7 +1366,7 @@ class GridWidgetBase : ScrollWidgetBase, GridModelAdapter, MenuItemActionHandler
if (m < sz.x)
m = sz.x;
}
Log.d("measureColWidth ", x, " = ", m);
//Log.d("measureColWidth ", x, " = ", m);
static if (BACKEND_GUI) {
if (m < 10)
m = 10; // TODO: use min size