Added error handling in Geolocate API
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { AboutSlint, VerticalBox, GridBox, Button, LineEdit, HorizontalBox, TextEdit, SpinBox } from "std-widgets.slint";
|
||||
|
||||
export global ComputerModuleCallbacks {
|
||||
pure callback killCherwell();
|
||||
}
|
||||
|
||||
export component ComputerModules inherits Window {
|
||||
VerticalLayout {
|
||||
spacing: 5px;
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { AboutSlint, VerticalBox, GridBox, Button, LineEdit, HorizontalBox, TextEdit, SpinBox, StandardListView } from "std-widgets.slint";
|
||||
|
||||
export global UserModuleCallbacks {
|
||||
pure callback searchUser();
|
||||
}
|
||||
|
||||
export component UserModules inherits Window {
|
||||
VerticalLayout {
|
||||
spacing: 5px;
|
||||
@@ -29,6 +33,9 @@ export component UserModules inherits Window {
|
||||
Button {
|
||||
text: "Search";
|
||||
primary: true;
|
||||
clicked => {
|
||||
UserModuleCallbacks.searchUser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user