moving notification to ui package
This commit is contained in:
parent
6390039ea9
commit
f56169cbd3
@ -1,4 +1,4 @@
|
|||||||
package main
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
@ -9,6 +9,14 @@ import (
|
|||||||
"github.com/gdamore/tcell/v2"
|
"github.com/gdamore/tcell/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
UI *Application
|
||||||
|
)
|
||||||
|
|
||||||
|
func ConnectUI(a *Application) {
|
||||||
|
UI = a
|
||||||
|
}
|
||||||
|
|
||||||
/* Notification Primitive */
|
/* Notification Primitive */
|
||||||
type Notification struct {
|
type Notification struct {
|
||||||
*tview.Box
|
*tview.Box
|
Loading…
Reference in New Issue
Block a user