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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ import { ComputerModules } from "pages/computermodules.slint";
|
||||
import { OtherTools } from "pages/othertools.slint";
|
||||
import { SettingsModules } from "pages/settings.slint";
|
||||
import { SideBar } from "sidebar.slint";
|
||||
export { UserModuleCallbacks } from "pages/usermodules.slint";
|
||||
export { ComputerModuleCallbacks } from "pages/computermodules.slint";
|
||||
export { OtherToolCallbacks } from "pages/othertools.slint";
|
||||
|
||||
export component MainWindow inherits Window {
|
||||
|
||||
Reference in New Issue
Block a user