fix: icon permissions and GTK single instance
- Use GTK default flags for single instance - Fix icon path to absolute /usr/share/icons - Add postinstall chmod 644 for icon - Remove Dart-level single instance code
This commit is contained in:
@@ -172,49 +172,49 @@ class _CustomAdaptiveScaffold extends HookConsumerWidget {
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
children: [
|
||||
// О программе
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final t = ref.watch(translationsProvider);
|
||||
return _DrawerMenuItem(
|
||||
icon: FluentIcons.info_24_regular,
|
||||
selectedIcon: FluentIcons.info_24_filled,
|
||||
label: t.about.pageTitle,
|
||||
isSelected: false,
|
||||
onTap: () {
|
||||
RootScaffold.stateKey.currentState?.closeDrawer();
|
||||
const AboutRoute().push(context);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
// Настройки
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final t = ref.watch(translationsProvider);
|
||||
return _DrawerMenuItem(
|
||||
icon: FluentIcons.settings_24_regular,
|
||||
selectedIcon: FluentIcons.settings_24_filled,
|
||||
label: t.settings.pageTitle,
|
||||
isSelected: false,
|
||||
onTap: () {
|
||||
RootScaffold.stateKey.currentState?.closeDrawer();
|
||||
const SettingsRoute().push(context);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const Divider(),
|
||||
const _DrawerThemeItem(),
|
||||
const _DrawerLanguageItem(),
|
||||
const _DrawerLicensesItem(),
|
||||
],
|
||||
),
|
||||
// О программе
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final t = ref.watch(translationsProvider);
|
||||
return _DrawerMenuItem(
|
||||
icon: FluentIcons.info_24_regular,
|
||||
selectedIcon: FluentIcons.info_24_filled,
|
||||
label: t.about.pageTitle,
|
||||
isSelected: false,
|
||||
onTap: () {
|
||||
RootScaffold.stateKey.currentState?.closeDrawer();
|
||||
const AboutRoute().push(context);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
// Настройки
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final t = ref.watch(translationsProvider);
|
||||
return _DrawerMenuItem(
|
||||
icon: FluentIcons.settings_24_regular,
|
||||
selectedIcon: FluentIcons.settings_24_filled,
|
||||
label: t.settings.pageTitle,
|
||||
isSelected: false,
|
||||
onTap: () {
|
||||
RootScaffold.stateKey.currentState?.closeDrawer();
|
||||
const SettingsRoute().push(context);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const Divider(),
|
||||
const _DrawerThemeItem(),
|
||||
const _DrawerLanguageItem(),
|
||||
const _DrawerLicensesItem(),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
body: AdaptiveLayout(
|
||||
primaryNavigation: SlotLayout(
|
||||
config: <Breakpoint, SlotLayoutConfig>{
|
||||
|
||||
Reference in New Issue
Block a user