mirror of https://github.com/buggins/dlangui.git
fixes
This commit is contained in:
parent
0d20c251eb
commit
92d466dfff
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1789,6 +1789,7 @@ int sdlmain(string[] args) {
|
|||
auto sdl = new SDLPlatform;
|
||||
|
||||
Platform.setInstance(sdl);
|
||||
Platform.instance.uiTheme = "theme_default";
|
||||
|
||||
int res = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue